Hey guys, this is my first post around here, and this is also my first game project. I need some help <img src="smileys/smiley1.gif" border="0" align="middle">
Basically I created a companion based on the "fairy companion" tutorial, but with a platform behavior added to it. This sprite, named as "comp" needs to act like a "blob jumping thing" (as seen in the game A Boy and his Blob) and follow the player through the platforms.
I'm having issues with the way it acts though, I've set two instance variables "following" and "standing", that works according to Player bounding box imagePoints distance and collision. I need the "blob" to smoothly stop "bouncing/jumping" while it gets closer to the player.
The logic I used behind it is probably wrong or too clumsy (the blob thing only jumps/bounces because it was set to follow an image point high above the head of the player (lerp(self.y, Ytarget, dt)), and the gravity of the platform behavior keeps "pulling" it down.
<img src="http://i1238.photobucket.com/albums/ff490/murilokleine/Blobplatform.png" border="0">
Also, I'd need help to move the "comp/blob" to an image point next to the player on R pressed, so I've set "keybord-> on R pressed-> set position...." but its instantly moved. I'd like it to smoothly reach its position next to the player. It would be awesome if the blob could jump to high platforms and not fall in every gap too.
Well, I can't express myself correctly in english, so enough with the clumsy text, here's the .capx
(use W,A,D for moving the player)
Thanks a lot for the help!