Limit Spawn Problem

SAMmanSAMman Member Posts: 228
edited November -1 in Working with GS (Mac)
Hey guys, almost done with my game. but one last glitch. I have my background set up to spawn an actor when Touch is Released. I want to limit it so that Actor can only be spawned one at a time. Example, I spawn him once when Touch is Released and when a rule called StopSpawn is false. When StopSpawn is true, it won't spawn the actor and when it is false it will. But it seems to spawn the actor when StopSpawn is false after the first time I release the Touch. do I have to reset the Touch to Release attribute somehow? if so, how do I do that? Thanks in advance.
SM

Comments

  • ORBZORBZ Member Posts: 1,304
    put a minor 0.1s delay... the spawning is glitchy in regards to the timing of things. It happens the frame AFTER the rule fires. In 0.9.4 it would spawn within the rule's context. Now it is out of context. Thus, you need to delay 0.1s to compensate, i.e. shove the rule's body into it to the frame after the next frame so that it executes after the actor spawns.
  • SAMmanSAMman Member Posts: 228
    Thanks, I gave that a try just now but It didn't seem to work. It just isn't recognizing that I have 2 conditions, touch is released and StopSpawn = false. Actually what I think is happening is that once I release the touch, it thinks it released permanently and so that condition is satisfied until I reset it somehow.
Sign In or Register to comment.