Clay Hoppers Hopping


Clay Hoppers are a very basic enemy. They jump from left to right along a parabola trying to smash anything in the way.  to set them up you would create 2 objects as a waypoint and set them as his left and right limits. and come out looking something like this in the editor. 


While this worked its a relatively tedious process to create the left and right points and set them relatively level to eachother.  To fix this i changed the script around to allow for no points to be set as  the left and right limits. Instead i created a float for the left and right limits of  of his path no longer needing points but still able to set them if you would like. This came out to look something like this. 

 

This allowed for a much cleaner and level path throughout. 

I have worked on these guys to fix a bug where they would start teleporting along their path and make it look like their rotation was just falling out of sync with their landing time. While a relatively easy fix it was a weird one to track down! 

Overall theyre now 100% drag and droppable with defaults set and free from jumpy bugs! 

Leave a comment

Log in with itch.io to leave a comment.