Page 1 of 1
pre-made bombs
Posted: Sat Aug 14, 2010 3:06 pm
by q2k2k
is there any way to make a pre-made bomb using the #become/#change feature? i am trying to make a rocket launcher but can only find already activated bombs
Posted: Sat Aug 14, 2010 4:20 pm
by Commodore
#become bomb and #change whatever bomb will only make non-activated bombs.
Posted: Sat Aug 14, 2010 6:09 pm
by q2k2k
oh i see its impossible then, i currently use the #change/#becomes to make c4s, i guess no rocket launcher:(
Posted: Sat Aug 14, 2010 7:03 pm
by Commodore
not that way at least. You'd probably have to it an object that you pick up, it follows you around, and then you push it to throw it and it #puts blocks around it when it thuds.
I haven't tested any of this code but this is what I'm thinking of:
Code: Select all
@rocket
#cycle 1
#end
:touch
#zap touch
:do
?seek#do
:touch
#zap touch
#walk opp seek
#end
:thud
#put n yellow fake
#put s yellow fake
#put w yellow fake
#put e yellow fake
#become yellow fake
Then you can fade out the explosion with a seperate object that looks for yellow fakes. (assuming you don't use them, red fakes, and red water as this code will make all of those tiles empty)
Code: Select all
@fader
#cycle 1
#if any yellow fake #do
#restart
:do
#change yellow fake red fake
/i#change red fake water
/i#change red water empty
#restart
To make the terrain explode build what you want out of objects then chain them together checking to see if they still block each other, if the chain is broken, all the objects disappear.
Code: Select all
@piece of helicopter or door whatever
#cycle 1
#if not blocked w #die
#restart