Ive been woring on a light RPG for a project in school, and i cannot get my run code to coperate with my movement code.
when the code is exicuted, i have camera and movement lock,
if ground=0 then vy# = vy# + gravity#*dt#
if keystate(32)=1 then vx# = vx# + cos(angy#) : vz# = vz# - sin(angy#)
if keystate(30)=1 then vx# = vx# - cos(angy#) : vz# = vz# + sin(angy#)
if keystate(31)=1 then vx# = vx# - sin(angy#) : vz# = vz# - cos(angy#)
if keystate(17)=1 then vx# = vx# + sin(angy#) : vz# = vz# + cos(angy#)
`if keystate(RKEY)=1 then vx# = vx# + sin(angy#) : vz# = vz# + cos(angy#)
if keystate(17) = 1 `wkey
if keystate(RKEY) = 1
move camera playermovespeed#
else
move camera iniplayermovespeed#
endif
endif
`only jump if on ground
if ground=1
if spacekey()=1 then vy# = vy# + playerjump#
endif
any assistance would be apreciated.
everything is being restored to its rightful place, Including the true power of the sharingan. the true power of I Madara Uchiha!