Ok well for my off-road motorcycle game i want it so when i go up hills, the bike rotates acourdingly to the slope angle so it is riding bothin wheels on the ground instead of plowing right through it
(hehe i love these new smiles) but anyways, the line of code i am using is this : [b]if groundh#>posy# then xrotate object 1,(groundh#-posy#) (btw, im not sure of the ending formula, but it should be about right) now what happens is i hit the first hill and it adjusts to it then wont change anymore, because even in the loop, the rotate object command goes once then wont repet itself again. i tested it many ways, like the line
if upkey()=1 then move object 1,1 repets over and over, but
if upkey()=1 then xrotate object 1,10 wont work. any ideas? i cant think of a better way to fix it. thanks for the help
~haxor
Sup Kids