Ramps can be complicated. The easiest way that I know of is this:
Make each foot a different color (for this example, the left foot is red, the right foot is blue). Then, based on whether which foot is touching the ground, rotate the sprite:
when gf clicked point in direction (90 v) forever if<not<color [#0000FF] touching color [#000000]?>> turn cw (5) degrees end if<not<color [#FF0000] touching color [#000000]?>> turn ccw (5) degrees end
Offline
Jodymoses wrote:
Tried it ... Not effective... But cant you use trig in some way.. Thanx for trying
If you know the slope or angle of the incline
Last edited by MoreGamesNow (2012-09-13 16:23:12)
Offline
MoreGamesNow wrote:
Jodymoses wrote:
Tried it ... Not effective... But cant you use trig in some way.. Thanx for trying
If you know the slope or angle of the incline
There is a way to detect the slope but its complicated and seems like a waste for whatever this is, since it sounds like you only need to detect one slope...
Offline