Multiple bombs?!
mmmodel
Member Posts: 46
Hello guys!
The problem is when i put more than one bomb in the scene the other bomb loses his power
Somebody know what i can do?
Thanks
The problem is when i put more than one bomb in the scene the other bomb loses his power
Somebody know what i can do?
Thanks
Comments
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
and the rule for the bomb is
when touch is pressed{
change att game.blastx to self.position.x
change att game.blasty to self.position.y
change att game.boom to 1
timer after 0,5
destroy actor
and for blocks
bomb rule{
change att self.distancefromblast to magnitude( game.blastx - self.Position.X , game.blasty - self.Position.Y )
}
rule
att self.distancefromblast < 120
change vel direction :(vectorToAngle(-( game.blastx - self.Position.X ),-( game.blasty - self.Position.Y )))
speed: 360-self.ditancefromblast
rotate to angle direction: (vectorToAngle(( game.blastx - self.Position.X ),-( game.blasty - self.Position.Y )))
speed: 90
i think is that :P
@Braydon_SFX
@ORBZ
Example:
Box rules
"Rule if attribute game.boom is true"
change att self.distancefromblast to magnitude( game.blastx - self.Position.X , game.blasty - self.Position.Y )
}
Rule
att self.distancefromblast < 120
change vel direction :(vectorToAngle(-( game.blastx - self.Position.X ),-( game.blasty - self.Position.Y )))
speed: 360-self.ditancefromblast
rotate to angle direction: (vectorToAngle(( game.blastx - self.Position.X ),-( game.blasty - self.Position.Y )))
speed: 90
att game.boom = 1
and then the bomb works, but if i use other in the scene the explosion not happens
hauehuaehuae :P
i did in the bomb one otherwise change att game.boom to 0
@Tokuhara u helped me a lot, thanksss!