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 / Alpha Collision with PNGs

Author
Message
Helium
15
Years of Service
User Offline
Joined: 13th Oct 2008
Location:
Posted: 18th Oct 2008 07:59
Hello! I have made a collision map in a PNG format, and I wanted to know if it was possible to return the collision from the pixels with full opacity in the file.

Here is the map, if I wasn't clear enough.

Sylerean Online - Sushibox Productions

Attachments

Login to view attachments
Helium
15
Years of Service
User Offline
Joined: 13th Oct 2008
Location:
Posted: 20th Oct 2008 04:26
No one?

Sylerean Online - Sushibox Productions
Phosphoer
16
Years of Service
User Offline
Joined: 8th Dec 2007
Location: Seattle
Posted: 21st Oct 2008 01:08
Not that I know of. In my game I ended up saving my levels as .txt files. I made a program that runs through a map with different colors in it, and writes a 1 for pixels that are walls, and 0 for pixels that are walkable. Then I load the text file into my game, and scale up the pixels into 20x20 collision tiles.

AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 21st Oct 2008 05:36
Search 'pixel perfect collision'.

<<---------CLICK IT
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.

Login to post a reply

Server time is: 2024-09-30 09:19:45
Your offset time is: 2024-09-30 09:19:45