i want to make a ball rolling movement so when it hits an object it rolls across it and when it gets to the edge it falls off that object. i also want to make this work for slanted objects as well.
could anyone possibly help me out with this. it would be appreciated.
thanks
Originally Posted by Harrison Waid i want to make a ball rolling movement so when it hits an object it rolls across it and when it gets to the edge it falls off that object. i also want to make this work for slanted objects as well.
could anyone possibly help me out with this. it would be appreciated.
thanks
Very basic idea but you could have
Always
+Ball overlapping an object [NEGATED]
-> Ball Y position = Ball Y position + 1
That doesn't take into account for the ball rolling across the object though, you'd have to factor that in for whenever the ball is overlapping the object(s) that break its fall.
--
"Del Duio has received 0 trophies. Click here to see them all."
"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"
DXF Games, coming next: Hasslevania 2- This Space for Rent!
Maybe try a pinball movement, and let the player's input modify the speed and direction of the object? Pressing the direction button increases the speed more than just tapping it; pressing the spacebar changes the direction to upward and amps up the speed; etc.
I'm not sure if you're doing a platform game, isometric, or whatever. But what I'm thinking of is straight outta Marble Madness: