I am making a topdown Zelda style game.
I wanted to add some kind of “frog” ennemy in it.
The way I did it was: I made the frog a platformer behavior, put in on top of a an invisible platform, make it go back and forth on that platform with a timer and a change of horizontal velocity (+100 or -100) and some invisible sprites to trigger a jump.
Problem is: when I move my character the frog moves with my character and/or the camera. It seems like my character speed and the frog speed are added together.
I would like the frog to have its own movement, independant of the player, I don’t get why this happens. I even checked if they were on different layers but they are not.
I checked that if I disabled the plaformer behavior this didn’t happen.
Maybe I just need to find another way to simulate a frog behavior but this seemed like the most straightforward way to do it so maybe I missed something.
PS: I wanted to upload a video or a game file or a zip file. Is there anyway to do it on this forum or do I need to use an external link?
Have you turned off default controls on the frog’s platform character behaviour - i.e unchecked the “Default controls
” option??
1 Like
Oh my god, how did I not understand it was this. (I was sur it was linked to the camera… what the hell was I thinking)
Thanks a lot.