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.

3 Dimensional Chat / alien compo code please help

Author
Message
Eternal Darkness
21
Years of Service
User Offline
Joined: 12th Oct 2003
Location: Area 51
Posted: 17th Oct 2003 20:54
Hi,

please can u tell me where i have gone wrong in my code , i am trying to make the alien walk when i press the up key.

Please note : i have only given that particular piece of code
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 18th Oct 2003 00:55 Edited at: 18th Oct 2003 00:55
Well, it might be starting the animation all over again, so maybe something like:

if upkey()=1
frm#=object frame(10)
inc frm#,5
if frm#<650 then frm#=650
if frm#>750 then frm#=650
set object frame 10,frm#
endif


Or, it might be the object speed, however doing the above with the code will sort that too - just change the frm# increase to something suitable.


Van-B

Eternal Darkness
21
Years of Service
User Offline
Joined: 12th Oct 2003
Location: Area 51
Posted: 18th Oct 2003 12:05
Thanks i'll try it
Eternal Darkness
21
Years of Service
User Offline
Joined: 12th Oct 2003
Location: Area 51
Posted: 18th Oct 2003 12:20
ThAnks evrey 1 i'v got it

its programmers like u that make this world a better place for newbies.

Thanks,
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 18th Oct 2003 17:34
No worries, glad you got it sorted.


Van-B

Login to post a reply

Server time is: 2025-05-13 23:46:06
Your offset time is: 2025-05-13 23:46:06