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 Professional Discussion / Is Limb Collision Possible?

Author
Message
BlackChaos
16
Years of Service
User Offline
Joined: 2nd May 2010
Location: London
Posted: 17th May 2012 22:11
I am trying to create an rpg and my player has a sword limb. How do I detect when my sword hits an enemy object? Is there a simple way?

AEngine 2012 Ameadus Project Feedback or Food o0
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 17th May 2012 22:56
You could make an object from limb(sword) and place it in x,y,z of your sword limb and rotate your new object as limb direction x, limb direction y,limb direction z of your limb...then just check for collision with this new object

Cheers.

I'm not a grumpy grandpa
BlackChaos
16
Years of Service
User Offline
Joined: 2nd May 2010
Location: London
Posted: 17th May 2012 23:18
Hmm.. Not sure why I didn't think of that lol I guess I easily become too reliant on prefabbed functions

Thanks Again chafari. I think you have helped me allot. Would you like to see what I'm working on? I can upload shots

AEngine 2012 Ameadus Project Feedback or Food o0
BlackChaos
16
Years of Service
User Offline
Joined: 2nd May 2010
Location: London
Posted: 17th May 2012 23:54 Edited at: 8th Jun 2012 05:43
Here is a video. //Has future Demo level.
http://www.youtube.com/watch?v=8Pp9djKdVVY

------->Previous
Felt like uploading
Well its more of a template for one of my fav games of all time(Phantasy Star Online Ep. 1 n 2)

Code name BS&K (Barbarians Spells and Kings)

///Progress
Not much left to do. Expect this on WIP soon.

////////////////////////////////Sorry if this is not the right place to post this but I wouldn't really call it a work in progress YET! Why? I doubt i'm going to keep the character model, the name and some other stuff.

Thanks again!


Shot at 2012-05-17

Shot at 2012-05-17

Shot at 2012-05-17



AEngine 2012 Ameadus Project Feedback or Food o0
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 18th May 2012 00:06
chafari to the rescue as always

BlackChaos looks interesting, might I suggest you got Plant Life and Tree Magik to add a little shrubbery in that world

I shall follow your WIP as this project looks interesting

BlackChaos
16
Years of Service
User Offline
Joined: 2nd May 2010
Location: London
Posted: 18th May 2012 03:51
Quote: "
BlackChaos looks interesting, might I suggest you got Plant Life and Tree Magik to add a little shrubbery in that world
"


Think I will look into Tree Magik and Plant Life towards the beta stage. I think shrubbery gives it a better feel.

AEngine 2012 Ameadus Project Feedback or Food o0
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 18th May 2012 13:11
Quote: "chafari to the rescue as always "


Yeah... but I think it could be done just cheking limb collision

Quote: "LIMB COLLISION

This command will return a value of one if the limb of one object is colliding with the limb of another.

Syntax
Return Integer=LIMB COLLISION(ObjectA Number, LimbA Number, ObjectB Number, LimbB Number)"


I'm getting old

Cheers.

I'm not a grumpy grandpa
BlackChaos
16
Years of Service
User Offline
Joined: 2nd May 2010
Location: London
Posted: 8th Jun 2012 05:46 Edited at: 8th Jun 2012 13:48
I've added a video.
The quality is not very great on the video but I've got more to upload before I make the WIP post.
[href]Here is a video. //Has future Demo level. http://www.youtube.com/watch?v=8Pp9djKdVVY[/href]

AEngine 2012 Ameadus Project Feedback or Food o0
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 8th Jun 2012 07:26


there I can hopefully see it here now

Login to post a reply

Server time is: 2026-07-07 17:08:01
Your offset time is: 2026-07-07 17:08:01