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 / Sprite help needed.... Will buy you a beer if you can! (or a sherbert dip if your too young!)

Author
Message
Iceman
23
Years of Service
User Offline
Joined: 10th Jan 2003
Location:
Posted: 13th Jan 2011 19:14
Hi folks!

Ok I need a little help here, so im throwing this out for the forum.

Im writing a game (based on a Worms/Tanks hybrid) and I need a good collision routine for it.

Now, before you read all this IF and I say IF there is already a freebie dll or whatever floating about that will do what I want, then PLEASE point me to it ok! Will save a lot of time if so.

However, if there isnt, then read on.

In this thread : http://forum.thegamecreators.com/?m=forum_view&t=179201&b=1

I posted for help with cloggys old 2d collision routine, and Madscientist was trying to help with it. But I just found out that cloggys routine cannot cope with animated sprites as apparently you would have to make a memblock on the fly for every single animation frame constantly.

SO........................ I have to forget that routine and look for another.

The problem is that I need a routine that will check for collision of a sprite against another sprite etc etc, BUT will let me move the sprite ONLY up to certain limits.

For example, if one of the sprites is walking along and comes to a steep incline, then fine, it will walk up it. But if that incline suddenly gets VERY steep, or becomes a wall or flips over the top of itself (like a spiral etc) then I need the sprite to stop. Unfortunately so far (esp with cloggys routine) the sprite just jumps through the ground/other sprite to reset itself on top of the blockage.

So, can anyone help me with a routine or point me to one that could be usable??

Thanks
Hodgey
16
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 13th Jan 2011 22:25
Hi, if your willing to spend a bit of money then I recommend extends as you can achieve perfect sprite collision with its commands.

A clever person solves a problem, a wise person avoids it - Albert Einstein
Iceman
23
Years of Service
User Offline
Joined: 10th Jan 2003
Location:
Posted: 14th Jan 2011 01:56
Well I will take a look at it ofc, but there are so many free dlls etc on here which is why I was asking (hey im cheap! lol).

I would try searching the code base but the search is not working right for me at the mo.
Iceman
23
Years of Service
User Offline
Joined: 10th Jan 2003
Location:
Posted: 14th Jan 2011 20:25
Ok, well I take it that there is nothing on the site or in code base that can help with this then.... Well back to the drawing board!
BillR
23
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 15th Jan 2011 00:10 Edited at: 15th Jan 2011 02:48
@Iceman - I have been working on a project for 2 years now, but I need a break.

If you are willing to zip everything together and email it to me so I can compile your game code, I will help you find a solution to your needs.
You can trust me to be careful with your code, I beta test for TGC from time to time(although I don't work for them, I wrote the Pachinko demo that ships with DarkPhysics)
I am pretty good about finding solutions or workarounds to problems.
email me if you have questions.
Aurum Knight
18
Years of Service
User Offline
Joined: 15th Jul 2008
Location: the suburbs of nowhere
Posted: 16th Jan 2011 00:24
Here's the list of free plugins. (link)

I haven't looked at it really, but Advanced Sprites by Mod looks like what you want.
Iceman
23
Years of Service
User Offline
Joined: 10th Jan 2003
Location:
Posted: 16th Jan 2011 21:33 Edited at: 16th Jan 2011 21:33
@BillR: Thanks for the offer m8. I will contact you by email and see what you can come up with.

@Aurum Knight: Ok I will DL it and give it a go.

Login to post a reply

Server time is: 2026-07-18 00:20:13
Your offset time is: 2026-07-18 00:20:13