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.

Dark GDK / Creating a Collision function.

Author
Message
Fency Federejshn
16
Years of Service
User Offline
Joined: 8th Dec 2007
Location:
Posted: 14th Dec 2007 14:31
my function looks like this.




Bit it doesent work so well, it makes my sprite shake upon contact, the GDK Collision function works good but it need's modification for my game...

How should i make a collision function that works good?

fency federejshn
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 14th Dec 2007 16:01
I think sparky's collision is usable from dgdk c++, you might want to try that since its a fast robust collision library that has worked out all of these issues already.

My DBP plugins page is now hosted [href]here[/href]
Fency Federejshn
16
Years of Service
User Offline
Joined: 8th Dec 2007
Location:
Posted: 14th Dec 2007 17:31 Edited at: 14th Dec 2007 17:34
How do i get sparky's library working with Dark GDK??? and where do i download it?

fency federejshn
Cellbloc Studios
20
Years of Service
User Offline
Joined: 15th Mar 2004
Location: Atlanta, GA
Posted: 14th Dec 2007 18:09
Ah, the power of the simple "Search" box at the bottom of the screen....

http://forum.thegamecreators.com/?m=forum_view&t=100377&b=22

Your mod has been erased by a signature
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 14th Dec 2007 19:16
Yeah - but this is sprite collision - that works stock in DarkGDK doesn't it? Why you making your own here? I think DarkGDK even does pixel perfect Sprite Collision - so transparency stuff doesn't count - Like round sprite would only collide where not see thru - at least that's what I thought.

CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 14th Dec 2007 20:18
ah, I failed to notice it was 2d sprites
can't hurt to have sparky's anyway

My DBP plugins page is now hosted [href]here[/href]
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 14th Dec 2007 20:30
You are so right on that one. Sparky's is the ONLY plug-in I used in DarkBasic - not cuz others weren't good - I just like "STOCK" where possible but everyone said how awesome it was - I needed that functionality - and WOW - I love it. It's a "mainstay" in my engine'ish code - it's part of the core things - Object - Scale Width - Scale Height - Collision Group

Login to post a reply

Server time is: 2024-11-17 00:21:55
Your offset time is: 2024-11-17 00:21:55