question about platformer
hey hi i need help, i want to collide my character in the center of the floor. like in the pic below.
please need help /?
https://drive.google.com/file/d/0B-Q_ljz55CCFNjdzMGZTSXYzeGM/view?usp=sharing
hey hi i need help, i want to collide my character in the center of the floor. like in the pic below.
please need help /?
https://drive.google.com/file/d/0B-Q_ljz55CCFNjdzMGZTSXYzeGM/view?usp=sharing
Comments
Use one actor for the floor graphic and a separate invisible actor (alpha setting of 0) for the collision of the floor.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
what if there are up and downs in the floor like, if there are objects like stone , rock or others, you are saying that i should use an other actor as invisible floor and put it into the center where i want. yeah i know that , but i wanna ask that how can we by pass an actor till to the center point of other actor. hope u understand what i'm trying to say..
@jamie_c
@shuaibmunawar : constrain character.position.y to floor.position.y + character.size.height/2
http://www.arcaderz.com
its not working,. ??? please help senpai ?? @jeezzcake
it workedddddddd
i was doing this to character and now i did this to the floooor and it workeddddd ,, thanks
sensei ,,,.. in gamesalad little things are the real deals, thanks i will ask for help again ,,. @jeezzcake Arigatoo
waitt, but its not moving ?
its not moving left right when i press keys , its stuck ?
help
Try this : https://drive.google.com/file/d/0B1vwAScC9gKKMlVobTNocTFaZ0U/view?usp=sharing
I would go with the method suggested by @jamie_c.
http://www.arcaderz.com
thanks , @jeezzcake , and whats "alpha settings 0". i'm kinda new in gamesalad, does it means bounciness to "0" ?
Under Color you have 4 attributes : Red, Green, Blue, Alpha.
If you change Alpha to 0, your actor will become invisible.
** how was the demo? - you can move the player using left ,right, space controls **
http://www.arcaderz.com
yes the demo was good, it was what i wanted but when i move the floor somewhere else, the actor still stand on the same place. ,. i want it to collide with floor but not fully , it should collide with the half of the floor,.
https://drive.google.com/file/d/0B-Q_ljz55CCFOE5XcHc5NktyQUk/view?usp=sharing