is "touch" different from "mouse down"? Can I test without license?
ccbx4321
Member Posts: 43
I've been trying to get an actor spawning system set up where a timer rolls a random number between a number range. Depending on what it rolls, it spawns an actor at a particular spot. I've got all of that working but I'm trying to remove the actors on a click or "touch".
I've tried setting up a boolean like actor1 is "alive"=true when it's spawned and to set it to "false" when it's destroyed. This way the spawner won't keep creating one actor on top of another, it can check the attribute to see if something is there first.
All of the spawning works until I go to "click" on them. The are destroyed yes, but when it comes time for them to respawn, I see the actor pop up and then disappear immediately afterward. I can't seem to get them to stay respawned after they've been clicked. I've been using the "touch" command and was wondering if it didn't work properly without testing on an ipod itself. Do I need to buy the license first? I'm not entirely sure but I sort of got one working. It may have been when I switched the "touch" to a "mouse down", but I can't be entirely sure if it was only that.
Anyway, sorry there's so much here. I appreciate all of your help (As always! You guys are always great!), thanks!
I've tried setting up a boolean like actor1 is "alive"=true when it's spawned and to set it to "false" when it's destroyed. This way the spawner won't keep creating one actor on top of another, it can check the attribute to see if something is there first.
All of the spawning works until I go to "click" on them. The are destroyed yes, but when it comes time for them to respawn, I see the actor pop up and then disappear immediately afterward. I can't seem to get them to stay respawned after they've been clicked. I've been using the "touch" command and was wondering if it didn't work properly without testing on an ipod itself. Do I need to buy the license first? I'm not entirely sure but I sort of got one working. It may have been when I switched the "touch" to a "mouse down", but I can't be entirely sure if it was only that.
Anyway, sorry there's so much here. I appreciate all of your help (As always! You guys are always great!), thanks!
Comments
if you want multitouch, however, you have to specify that under "Devices" in the Attributes drop-down