is "touch" different from "mouse down"? Can I test without license?

ccbx4321ccbx4321 Member Posts: 43
edited November -1 in Working with GS (Mac)
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!

Comments

  • ktfrightktfright Member Posts: 964
    it is best to use touch, but thats the only answer i can really give you.
  • ccbx4321ccbx4321 Member Posts: 43
    So you're not sure if it tests differently on the computer as opposed to the ipod/iphone itself? I'm planning on purchasing an indie license once I have at least one game ready, but will I only be able to properly test it when I've made the purchase, or can I get the game ready beforehand to maximize my license time?
  • firemaplegamesfiremaplegames Member Posts: 3,211
    yes, mouse down translate to touch. you don't even have to recode it for the device. it just works.

    if you want multitouch, however, you have to specify that under "Devices" in the Attributes drop-down
Sign In or Register to comment.