Yes, I knew that it moves when you get close, but I didn't know how how did you make the jumping. I would probably create an empty GameObject with a collider set to trigger, put it on the right side of the horse and set that GameObject as a child of the horse, so that it would move with it. Than I would create an OnTriggerEnter2D void in a script attatched to that empty GameObject, which would detect wether it touches anything with a certain tag (All the groud GameObjects would have that tag) and if it does, it jumpes. Did you do it the same way?
← Return to game
Comments
Log in with itch.io to leave a comment.
quite unusual, but enjoyable game. I am still trying to figure out how did you make that horse AI. It's really well made.
The A.I. is actually very simple, the horse moves forward when you get too close and jumps if it hits the side of a block.
Yes, I knew that it moves when you get close, but I didn't know how how did you make the jumping. I would probably create an empty GameObject with a collider set to trigger, put it on the right side of the horse and set that GameObject as a child of the horse, so that it would move with it. Than I would create an OnTriggerEnter2D void in a script attatched to that empty GameObject, which would detect wether it touches anything with a certain tag (All the groud GameObjects would have that tag) and if it does, it jumpes. Did you do it the same way?
Well when I made this game I used Construct 2, which is a visual coding software. I don't know how you would do that in something like Unity.
Oh, okay.
Clever.
fun