Score Platform
yasoofx
Member Posts: 332
Hello Again. So i made the platform do everything but now i wanna make the platform randomizes the Y Axis like sometimes it is a little up and some times its down. How can i do that??
Best Answer
-
jamie_c ImagineLabs.rocks Posts: 5,772@yasoofx, an update to my previous demo is attached. I added a random offset for the Y axis in the spawn behavior.
Keep in mind this is very rough, I'd expect you'd want to limit the top and bottom Y location so the platforms don't go off the screen, and consider adding space between some platforms.
Hope this helps some.
Answers
so it could be something like random(50,100)
hope this helped
good luck
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
Like I said, that is very rough just to give you the concept. You'll want to play with the code to make it function 'just so' for your game.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page