Information

Author:
    Juju
Rating:
    8.3 (3 votes)
Type:
    Example
Language:
    GM 6
Reviews:
    None
Submitted:
    January 10, 2006
Dev - DB/form (refering to updated - check code)
Download:
    DOWNLOAD (736)
Dev - make AJAX
Screenshots (0)
Dev - Also, on form submission, use GD to resize the image as a new thumbnail file
There were no screenshots provided
Dev - In the submission form, you can now upload a banner image
Destructible Terrain
It's the easiest, and simpliest, way of creating destructible terrain. You can load in literally any landscape and any size hole template. There are some rules to landscape and hole creation though, so read the help file!


Target platforms:



I tried messing with the code to see if it would be faster to use surface_copy in the mouse event. It might have helped a bit.. but I think the function ignores tranparency.

Othervise a nice and simple example but I suspect there's better ways to do it like maybe drawing everything to a surface and thereby avoiding creating and deleting sprites. That would of course still leave some transparency issues so I'm not gonna vote :)
Posted by SpectreNectar January 11, 2006 17:53 - 8.8 years ago
| [#1]

A) You have to use sprites if you want fast pixel-perfect collisions
B) Sprites handily solve the transparency issues
C) Instead of deleting the sprite in the mouse event I could change it so that it deletes it the step after... That might work to speed it up but only marginally.
Posted by Juju January 12, 2006 14:47 - 8.8 years ago
| [#2]

I haven't been experimenting with destructable terrain and I guess you're right for most parts.
I really think C) would be a worthwhile improvement because I noticed a big delay from when I clicked to when the hole appeared. Maybe it would be enough to simply redraw the screen before deleting the sprite. And A) well... it could be done in another step/moment as well.
But nice example as I wrote
Posted by SpectreNectar January 12, 2006 15:36 - 8.8 years ago
| [#3]

lol, too slow
Posted by noshenim June 03, 2006 17:53 - 8.4 years ago
| [#4]

Good idea, but slow. I got 5-25FPS
Posted by gtvg September 24, 2006 21:36 - 8.1 years ago
| [#5]

kinda good, i still like your more complex version better though! 8/10
Posted by LoserHands September 25, 2006 19:58 - 8.1 years ago
| [#6]

cool. I guess...I thought it was, so 9/10.
Posted by Crane-ium March 10, 2007 14:04 - 7.7 years ago
| [#7]

Recent Activity
 
Active Users (0)