Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / problems with model animations

Author
Message
DaedalusX
21
Years of Service
User Offline
Joined: 10th Mar 2004
Location:
Posted: 9th Jan 2005 07:32
what im trying to do is have a default model (walk.x) and when control key is pressed it loads spikejab.x then once animation has finished playing it goes back to the default. the problem is when it goes back to the default model the up and downkeys dont respond. (the angle will be wierd when u press control as i havent sorted the angles out yet)
any advice will be legendary



Daedalus
miki
20
Years of Service
User Offline
Joined: 7th Jan 2005
Location:
Posted: 9th Jan 2005 18:59
hi,

instead of
if Upkey()=1 then move object 1,+3
if Downkey()=1 then move object 1,-3
try
if Upkey()=1 then x#= newxvalue(x#,ay#,3):z#= newzvalue(z#,ay#,3)
if downkey()=1 then x#= newxvalue(x#,ay#,-3):z#= newzvalue(z#,ay#,3)

i could be wrong:i could be right

regards
miki

in the end

Login to post a reply

Server time is: 2025-05-24 17:28:29
Your offset time is: 2025-05-24 17:28:29