Getting Started Tutorial: Clicking asteroids does not delete them
by Sebastian Young · in Torque 2D Beginner · 12/09/2013 (10:23 pm) · 5 replies
Hi, I am working through the getting started tutorial and I am on the part where you implement controls. I have followed all of the steps and when I click the asteroids they are supposed to be removed but when I run the program clicking them does nothing.
Has anyone else run into this problem before and know how to fix it?
Has anyone else run into this problem before and know how to fix it?
#2
%asteroid.createCircleCollisionShape( (%randomsize*0.85) / 2);
GuiDefaultProfile:
if(!isObject(GuiDefaultProfile)) new GuiControlProfile (GuiDefaultProfile)
{
Modal = true;
};
input listener to SceneWindow (in main.cs):
new ScriptObject(InputManager);
mySceneWindow.addInputListener(InputManager);
I put the echo at the top of InputManager::onTouchDown and when I try to open the console I get a message saying: "The process cannot access the file because it is being used by another process." in front of a blank text document.
I just did a little more searching on how to actually view the console. What I found said to hit the tilde (~) key, but when I press it in the game nothing happens.
12/10/2013 (11:24 am)
Collision shape to the asteroid: %asteroid.createCircleCollisionShape( (%randomsize*0.85) / 2);
GuiDefaultProfile:
if(!isObject(GuiDefaultProfile)) new GuiControlProfile (GuiDefaultProfile)
{
Modal = true;
};
input listener to SceneWindow (in main.cs):
new ScriptObject(InputManager);
mySceneWindow.addInputListener(InputManager);
I put the echo at the top of InputManager::onTouchDown and when I try to open the console I get a message saying: "The process cannot access the file because it is being used by another process." in front of a blank text document.
I just did a little more searching on how to actually view the console. What I found said to hit the tilde (~) key, but when I press it in the game nothing happens.
#3
12/11/2013 (5:49 am)
Press ctrl + ~ to get the console. Also, you can view the console.log file after you have shut down T2D.
#4
12/13/2013 (5:07 am)
Any progress or info?
#5
12/13/2013 (7:50 am)
Sorry, I have had finals the last few days. I fixed the problem with the asteroids. Apparently during the tutorial I had made two different guiprofiles. I saved one in the right place and another in a different place. My program was linked to the right place but I added the correct code to the wrong file. I added the correct code to the right file and it works just fine now. Pressing 'ctrl' + '~' still doesn't bring up the console in game, though, and when I close T2D I still can't open the console file.
Employee Michael Perry
ZombieShortbus
Put an echo at the top of InputManager::onTouchDown and see if you at least make it to that call.