The Daily Click ::. Forums ::. Klik Coding Help ::. Destructible Terrain
 

Post Reply  Post Oekaki 
 

Posted By Message

Jarzka



Registered
  26/12/2003
Points
  270

VIP Member
20th January, 2006 at 11:32:39 -

I know how to make destructible terrain in TGF or MMF with "Paste Backdrop". But I don't like the backdrop which is monochrome. Any idea how to make destructible terrain with better backdrop?

For example: http://www.boblycat.org/~malc/qemu-shots/qemu-worms.png
See? The backdrop is not monochrome. There is a backdroppicture.

Hope you understood this.

Image Edited by the Author.

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
20th January, 2006 at 12:11:47 -

Background system boxes, I guess. Haven't tried in a while.

 
n/a

Jarzka



Registered
  26/12/2003
Points
  270

VIP Member
20th January, 2006 at 12:18:03 -

I would like to have some article or tutorial if possible :S

Image Edited by the Author.

 
n/a

Hernan



Registered
  04/03/2003
Points
  707

VIP Member
20th January, 2006 at 12:53:23 -

Search the CT forums. I'm pretty sure someone posted an example using overlay or something. Can't remember the name.

 
This space is for rent

Destroyer (CrobaSoft)



Registered
  10/10/2004
Points
  1106
20th January, 2006 at 12:55:22 -

This one?

http://www.clickteam.com/CTforum/showthreaded.php3?Cat=&Board=upload&Number=270943&Search=true&Forum=upload&Words=Alien&Match=Username&Searchpage=0&Limit=25&Old=allposts&Main=270943

 
Visit www.crobasoft.com or you're a Noob.

Destroyer (CrobaSoft)



Registered
  10/10/2004
Points
  1106
20th January, 2006 at 12:55:56 -

This one?

http://www.clickteam.com/CTforum/showthreaded.php3?Cat=&Board=upload&Number=270943&Search=true&Forum=upload&Words=Alien&Match=Username&Searchpage=0&Limit=25&Old=allposts&Main=270943

 
Visit www.crobasoft.com or you're a Noob.

Hernan



Registered
  04/03/2003
Points
  707

VIP Member
20th January, 2006 at 14:19:36 -

Yeah, that's the one. The creator forgot to switch the first two events, but it really has a 'not-monochrome' background.

 
This space is for rent

Jarzka



Registered
  26/12/2003
Points
  270

VIP Member
20th January, 2006 at 15:02:23 -

Hmm, this looks good.

I will test it and come back later. Thx.

EDIT: One little problem is that the snow is monochrome and looks stupid

Image Edited by the Author.

 
n/a

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
21st January, 2006 at 23:15:25 -

I think he means 'how do you include a better backdrop AND use destructible backgrounds'

The typical way to destroy terrain is add-backdropping over it, but this isn't feasible if you want to see through the the backdrops (as in worms, where you can see behind the terrain after you've destroyed it).

One way might be this:

Insert a backdrop as a quickbackdrop or something else.
Insert an Overlay Redux Object.

Load your level design as a BMP file into the overlay object (or you can make a level editor in MMF which effectively does the same, but uses tiles to draw a picture into the overlay).

Then when terrain is destroyed, you create a black filled circle at the place where you want to destroy the terrain.

Because it treats absolute black (0,0,0) as transparent, this terrain literally becomes see-through.

 
191 / 9999 * 7 + 191 * 7

Jarzka



Registered
  26/12/2003
Points
  270

VIP Member
20th February, 2006 at 10:43:34 -

Now it works, thx for help.

But still one "little" problem. I have no idea how to make ja collission.

There was something like this in the tutorial:
ovlGetColorIndex( "Terrain", Int( X( "Player" ) + Sin( LoopIndex( "Circle" ) * 3.6 ) * 10 ), Int( Y( "Player" ) + Cos( LoopIndex( "Circle" ) * 3.6 ) * 11 ) )

But I don't understand anything about this code
BTW I'm not going to use Platform extenssion, because there are lots of "Player" objects.

Image Edited by the Author.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click