Weird Missile Behavior
CaramelTigerClan
Member Posts: 143
Here is my problem my fellow GameSaladians,
I have a scrollable game in which you press a button to make the ship shoot a rocket. The button is on a non-scrollable layer, but it creates the rocket on the non-scrollable layer as well! Our game is surely doomed unless we can make that button spawn the rocket on a scrollable layer.
Are there any fixes to this?
I have a scrollable game in which you press a button to make the ship shoot a rocket. The button is on a non-scrollable layer, but it creates the rocket on the non-scrollable layer as well! Our game is surely doomed unless we can make that button spawn the rocket on a scrollable layer.
Are there any fixes to this?
Comments
Have a rule on the button that when it's pressed, shoot missile is true, otherwise it's false
Put the rocket spawn on your ship.
Have a rule that says 'If shoot missile = true'
then spawn actor missile
Hope that helps!
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Ok, here it is, I spawn the missle actor from my player chacter no problem. The missle actor then tracks the npc actor as commanded. Once the two actor connect they both explode as ordered. Here the problem, the npc actor then despawns but the missile actor just hangs there and will not despawn!?
Ack! I've tried racking my brain and cannot figur this out. How do I make my missile actor despawn after it has preformed it's task?
Any help will be welcomed
thank you
then
destroy this actor
that will destroy the missile at the same time as the npc actor
// Red Dot Inc
then
destroy this actor
that will destroy the missile at the same time as the npc actor
// Red Dot Inc
Well, thank you for your response, Red Dot.
But this has already been tried, it ends with the asteroid being destroyed and the missile is left hanging there half the time.
This is rather baffling, it doesn't make any logical sense. Is this a possible bug in GameSalad?