The Daily Click ::. Forums ::. Klik Coding Help ::. 2 questions in TGF...
 

Post Reply  Post Oekaki 
 

Posted By Message

KevinHaag



Registered
  28/01/2005
Points
  266

VIP Member
1st September, 2005 at 13:31:51 -

OK, I'm going to try to kill 2 birds with 1 stone here...

Destructable terrain and random terrain... how would i go about coding this? Remember I have: THE GAMES FACTORY<B/>

 
Image
http://www.kevinhaag.ca

Philip Dyer



Registered
  29/11/2003
Points
  19
1st September, 2005 at 17:45:54 -

kk, you make an explosion (For instance), and when it explodes you right click on it in the event editor, animation-paste image into background-not an obstacle. This will leave the explosion there but you can walk over it. Only works with background objects.

Random terrain? You have a tree. set x position random (800), y position random (600) or something. Not that clever, but it makes it random.

 
n/a

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
1st September, 2005 at 19:31:02 -

Ok, for destructable terrain.

Make two objects, your destruction range (Crater in the ground) and your shot.

When the shot hits the BG, create crater object at 0,0 from the shot, paste the crater into the BG (not an obstacle) then destroy it. I believe this works with invible objects, but I cant quite remeber, but if it doesn't, then you'll need to make your crater object is the same color as your non collidable BG.

For random terrain, draw a bunch of hills or such as active objects, then just make a group of event that randomly changes their X,Y coords then paste it into the BG.

 
Craps, I'm an old man!
   

Post Reply



 



Advertisement

Worth A Click