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 / Help needed.

Author
Message
Blazer
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: United States
Posted: 25th Jan 2003 17:32
Can somone give me a peice of code that dose something like this:

if your playing an animation and the frame now = "whatever" then "do something"

be much apricicated
Kentaree
21
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 25th Jan 2003 22:04


Remember, the help file is your friend...

Whatever I did I didn't do it!
Blazer
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: United States
Posted: 25th Jan 2003 23:08
The code just didn't do anything heres what I put:

if spacekey()=1 then play object 1,0,3

if object frame (1)=2
jump=1
endif


when jump =1 my guy is supposed to jump, but it didn;t do anything
The Darthster
21
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 26th Jan 2003 01:11
There shouldn't be a space between object frame and the number in brackets. Are you sure you'r jump code is working properly?
Blazer
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: United States
Posted: 27th Jan 2003 01:08
I figureg it out, < or > works so I just did:

if object frame (1)>1 and object frame (1)<3

thx all

Login to post a reply

Server time is: 2024-05-05 00:48:07
Your offset time is: 2024-05-05 00:48:07