Befuddled
mattpatron@gmail.com
Member Posts: 1
Hi Gang,
I have been attempting to create an endless runner where my main character turns into a RAM when the return key is pressed in order to bust through walls. My issue is that when I hit RETURN--the ram SPAWNS, but when I release the key he remains on screen over the top of my actor. When I hit RETURN, the main actor should vanish (turning into the RAM). When I release the key, the RAM should die and reveal the main actor again. Only when the main actor is in RAM form can he break through walls. I thought this would be easy--but I have been stuck on it for days trying all kinds of different stuff to get it to work. Any help would be greatly appreciated. (I am a total NOOB, by the way:)
Comments
Welcome to the forums @mattpatron@gmail.com
I would use a game state attribute to control the switching of the actors. It will give you more control in the long run.
Attached is a sample project. Enter-key to switch bodies.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
Hopscotch,
Thank you so much for the swift reply. I have been stuck on this for days and not knowing enough of this, did not even consider game state. You are my HERO. Thank you so, so much. Going to try this as soon as I get home from work. Your insight is much appreciated.