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 / help with push objects

Author
Message
Daniel wright 2311
User Banned
Posted: 23rd Jun 2013 08:29 Edited at: 23rd Jun 2013 08:30
Ok, I have been doing this for years but never thought out a way to push objects around with my player object.

I have tried today, many different ways but none of them worked, If any one has a good example I would appreciate it.

my signature keeps being erased by a mod So this is my new signature.
Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 23rd Jun 2013 10:03
well the best and easy way is to use Physics plugin.. there are lots of them already today at TGC forum.

otherwise, you also may use Sparky Collidion dll.
it just a collision plugin, but there are enough tools/commands to make make your player push objects in the right direction.

the idea is simple..
you detect some kind of collision between the player and the object u want to push, you checking to wich direction you pushing and making your object move and rotate according to that.

sounds easy? i dont think so

Stream SnifferTools/Plugins/Models/Games and more!
Daniel wright 2311
User Banned
Posted: 23rd Jun 2013 10:28
I understand the concept, I just can not figure it out is all, I am using sparkys dl for collision. I just need a little code to get me in the right direction and I am sure some one has done it.

thanks for your time Sergey K

my signature keeps being erased by a mod So this is my new signature.
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 23rd Jun 2013 14:06
Hi there. This piece of code has not physics...not sparky's...just a little trick.




I hope that help ...

I'm not a grumpy grandpa
Daniel wright 2311
User Banned
Posted: 23rd Jun 2013 21:26
I will try this and work with it, thank you chafari .

my signature keeps being erased by a mod So this is my new signature.
Daniel wright 2311
User Banned
Posted: 23rd Jun 2013 22:18
I got it to work doing this, so simple all this time, I was getting long code figuring out angles and others stuff when all needed to do was this, thank you.



my signature keeps being erased by a mod So this is my new signature.

Login to post a reply

Server time is: 2026-07-06 20:31:17
Your offset time is: 2026-07-06 20:31:17