Send me in the right direction.
nep2008
Member Posts: 16
I am trying to make a simple puzzle game where the player has to collect a certain amount of coins to open a gate to the next level. Can someone send me to the correct tutorial that explains this?
ex: player has to collect 10 coins to open the gate to get to the next level. If said player only collected 9 the change scene attribute won't trigger when player collides with it.
Regards,
Nep
ex: player has to collect 10 coins to open the gate to get to the next level. If said player only collected 9 the change scene attribute won't trigger when player collides with it.
Regards,
Nep
Comments
In a nutshell- create a game attribute called coins. Integer is fine. Create a rule in your player, When player collides with coin, change attribute game.coins to game.coins+1
have a rule for your change scene that say When attribute game.coins is greater than or equal to 10, change scene.
Just the basics here, but hopefully you understand.
1. Make a new Game Attribute called coins, make it an integer.
2. Each time your player Collides with a coin, add 1 to the coins attribute, and probably destroy the coin.
3. Add a Rule to the gate actor that watches the value of the coins attribute. When coins equals the amount you want for that gate (say 10), open the gate.
Let me know if that helps at all.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
I am working with the windows free version. How do I bring up the expresion editor for the attribute?
I went into game added an attribute: integer named it coin.
Went into my goal actor where my change scene attribute is and added a rule. and can't put in equals to our greater than.
I guess I dumb but could you spell it out for me. I know you have the windows version, and I am a rookie.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Regards,
Nep
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Enough pontificating on my part.
Jamie, That would be great try to send it over to me and I will try to open it. Just give me the instructions as to how you open Windows files in your MAC creator, and I will try to transpose them to my Windows creator.
Regards,
Nep
http://www.jamie-cross.net/?portfolio=gamesalad-pickups
Check it out, I hope it helps!
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Hit the nail on the head. Thank you for taking the time with the video!
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page