Respawn freezing and collide problems
Hey all,
Freezing:
So when my actor hits five falling rocks he's destroyed and then respawns at the beginning location of the game. What's happening is that when the actor hits that last befalling rock the scene freezes with a jittery image of the main actor in contact with that last rock AND a jittery image of the actor at the respawn location. I cannot "UNDO" and I have to quit GS and reopen.
Collide:
I have three types of falling rocks being spawned at the top of the screen. I have the rock tagged and I use that tag in a collide attribute in my actor. Only one of the three falling rock actually reduces a life of my actor. The other two rocks do not affect the actor. What I have is:
When actor collides with tag Rock/ CHANGE ATTRIBUTE: game.GameLives TO: game.GameLives-1
Am I missing something?
Thanks folks!
Alan
Comments
Hi @Alano,
Freezing: It seems like you could have your condition in a 0 timer making the actor spawn new actors endlessly? This would explain the freezing and jitteriness.
Collide: Do all the rocks have the "Rock" tag?
Or, does it only happen when two or more rocks are colliding with the actor at the same time? In this case it is because the collide rule is already true for one Rock, so the others do not trigger it again. Easy solution is to put the collide rule for game.GameLives-1 into the rocks.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
Hey thanks Hopscotch!
Freezing: I do have a Timer and I had the Spawn command in it. I then removed the Spawn command out of the Timer and turned the Timer OFF. Still had the same issue. After reading your reply I will remove that Timer all together. I'm away from my laptop now but will try this in a bit!
Collide: Yes all the rocks have that tag. I will try your suggestion to put the game.GameLives-1 in each of the rock. Never thought of that.
Thanks for the help!
Alan
Okay,
Collide: I added in that rule in each rock and it works like a champ. Each hit minus one heart and so on.
Freeze: Oh boy, so I removed the Timer and now when the last collide happens it freezes but does not even show the respawned actor. But worse, I cannot quit GS. I do get the closing window asking me to save or Don't save and freezes at that screen. I have to Force Quit (Mac os) in order to get out.
Any help would be appreciated!
Alan
@Alano,
great that the collide issue got solved.
Regarding the freezing, I guess you will have to post a screenshot of the relevant section. Sounds like some problem with your logic unfortunately.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
Thanks Hopscotch.
I'm new to GS and started with a template which has extra features I don't use. Perhaps I should rebuild it from scratch. I know enough on how to copy the code I need. Thanks for your help!
That is great. That is how we all learn, and the idea behind templates. So it is a good idea to rebuild with just what you need.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
Okay, rebuilt from scratch! (heh, it's a lot quicker the 2nd and 3rd time around)
*So for testing I only have 1 rock being spawned. I got major freezing with colliding this one rock! The last game version I had four different rock actors falling down and upon last collide, that would have destroyed the actor, did I get freezing. This time with the full three lives available and upon the first collision I got freezing!
Thanks for your help!
Alan
@Alano, maybe post a screenshot, or if you don't have sensitive images in your game then PM me your project and I will have a look at it.
Then I can better give you pointers. The freezing is not normal.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
Thanks. What is the best way to share an image here? I see where you need to post an url but where are people parking their images?
Thanks,
Alan
...I'm reading the forums on how to upload images...
-Alan
@Alano, I will PM you.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
Got it thanks! Hope you see something.
-Alan
@Alano, recommendations to fix the issue has been sent. Please let me know if it's clear.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com