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.

Newcomers DBPro Corner / collision / object animation??

Author
Message
Sir Ollie
19
Years of Service
User Offline
Joined: 29th Sep 2004
Location:
Posted: 7th Mar 2006 17:53 Edited at: 7th Mar 2006 17:54
i am making an fps and i have done collision, but as soon as i run the game the german does its dying animation, without me shooting it.


ty


"Thank you, come again!"
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 7th Mar 2006 21:00
Im guessing its with this piece of code:



Your code is really messy learn to indent it. You're checking if object collision (5,6)= and then immediately giving a solutuon statement, Im surprised you're not getting an error for this, try adding a 1 before the then statement, like so:



Still cant believe DB allowed that, I guess it assumes that when no parameters are given for the = operator is sets it to 0, which is why your character was dying automatically as it was checking if the object WASNT colliding with the bullet.

Sir Ollie
19
Years of Service
User Offline
Joined: 29th Sep 2004
Location:
Posted: 8th Mar 2006 16:55 Edited at: 8th Mar 2006 17:11
ok my collision code is now

but when i shoot the german it doesnt play the dying animation, it just stays there.
is it my bullet

or shooting?


ty

"Thank you, come again!"
Sir Ollie
19
Years of Service
User Offline
Joined: 29th Sep 2004
Location:
Posted: 10th Mar 2006 17:31 Edited at: 10th Mar 2006 17:32
heloooooooooooooooooooooooooooooooooooo?

"Thank you, come again!"
Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 11th Mar 2006 09:59 Edited at: 11th Mar 2006 10:01
"IF
This command will allow your program to perform a sequences of commands based
on the result of a condition. If the condition is true, the commands after the
THEN keyword are performed. Ensure that your commands after the THEN
keyword are separated by a colon(."

Try the colon >>> :
Sir Ollie
19
Years of Service
User Offline
Joined: 29th Sep 2004
Location:
Posted: 12th Mar 2006 19:41 Edited at: 12th Mar 2006 19:43
i changed it, to a : but it is still the same, the german does not doing the dying animation

plz help


"Thank you, come again!"

Login to post a reply

Server time is: 2024-09-24 19:20:56
Your offset time is: 2024-09-24 19:20:56