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 / Need a small snippet

Author
Message
Blazer
22
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: United States
Posted: 15th Oct 2003 22:03
i need to know a snippet for

when an added limb for object 1(a sword) collides with oibject 2 (a monster) then .....something happens

thx in advance

As I walk through the vally of the shadow of death, I will fear no evil.
- Psalms 23:4
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 16th Oct 2003 11:43
For DBC you cant check to see if limbs are colliding, only if objects are colliding.

So, to solve your problem, i suggest you check to see if the objects are colliding (the character with the monster) and also check the animation frame (to see if the sword swinging animation is being played) that way, you can "kill the monster" when the objects collide only when the charater is swinging its sword.

this is just whipped up in a few seconds... hope it helpes...



Knowladge Belongs To The People...

Login to post a reply

Server time is: 2025-05-21 16:30:47
Your offset time is: 2025-05-21 16:30:47