PLEASE HELP! Spawn issue.
Hi,
This is the only bug i have thats stopping me finishing the game and uploading it. My target spawns at a random spawn off screen and moves on screen. On touch u get points etc then its destroyed and triggers a new target to spawn. Every now and again though it wont spawn a new target and causes the user to not be able to play. Can anyone help or would anyone like to look at my project see if they can figure it out?
Thanks in advance guys.
This is the only bug i have thats stopping me finishing the game and uploading it. My target spawns at a random spawn off screen and moves on screen. On touch u get points etc then its destroyed and triggers a new target to spawn. Every now and again though it wont spawn a new target and causes the user to not be able to play. Can anyone help or would anyone like to look at my project see if they can figure it out?
Thanks in advance guys.
Comments
kipper
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
So in the rule when touch is pressed...do all the points etc then at the end moveto.random(1,4) as i have a game att that creates a random num 1-4 based on the 4 spawn points. Then just have it move back onto the stage after a second or something?
Thanks
That could also help with performance, as you're just spawning the one time, rather than every time you hit a target
Cheers,
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
I have the game attribute spawn, then when the target is shot i change it to 1 (just for ease of testing, it will be random 1,4 eventually). When the target is shot it interpolates x,y to 0 so it fades out.
I then have a rule in the target stating if game.att spawn = 1 then move to -30, 100 (so its off screen) at speed 1000. Then a timer saying after 0.5 seconds interpolate back in then move to random location on screen.
However, after i have shot the target it interpolates out fine. Then it appears to move about 40 pixels down and interpolate back in, then shoots to the -30, 100 at the speed of 1000 and just bounces around the screen lol.
Please help
Try using 'change attribute' to change the position to off-screen instead of 'move' as you've described above.
I hope someone else can assist you further if you get stuck!
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Thanks for your help QS