Re-spawn actor to repeat same action when other actor is pressed
Hi all
Please can someone help me with a actor issue
I have a actor button that is pressed which causes a bullet shell to spin across the screen (Actor name is bullet 02 and is located at x 65 / y -25. This is set up at present as a Boolean.
The problem I have is when I press the button it works fine the first time but I need it to put the bullet back again in its original position and be ready to appear when the box is pressed again.
I have tried turning the bullet 02 actor to 'false' again but obviously the actor isn't there anymore as its span off the screen.
Is there a way to keep re-spawning the bullet back in its original position and be fired again when the box is pressed again? (NOTE: this needs to be repeated all the time)
Any help would be great...being trying to fix for the last 2 hours...
Thanks guys.
Please can someone help me with a actor issue
I have a actor button that is pressed which causes a bullet shell to spin across the screen (Actor name is bullet 02 and is located at x 65 / y -25. This is set up at present as a Boolean.
The problem I have is when I press the button it works fine the first time but I need it to put the bullet back again in its original position and be ready to appear when the box is pressed again.
I have tried turning the bullet 02 actor to 'false' again but obviously the actor isn't there anymore as its span off the screen.
Is there a way to keep re-spawning the bullet back in its original position and be fired again when the box is pressed again? (NOTE: this needs to be repeated all the time)
Any help would be great...being trying to fix for the last 2 hours...
Thanks guys.
It takes a Zombie to know a Zombie!!!
Comments
If you wanted to do that, you could have a separate "manager" object that says, when true, spawn a bullet actor at x,y, then set to false after spawning.
and have the bullet actor's default behavior be the movement to offscreen. And obviously kill it at the right time so you don't amass bullet actors.
Is that what you intend to do?
After the button is pressed and the original bullet flies across the screen I want a new bullet to spawn at the original position and use the same attribute like the rotation and stuff...
Can it be done?
It takes a Zombie to know a Zombie!!!
1) Load scene
2) User presses button
3) bullet off screen flies across screen
4) reload bullet again with all setting back at its original position ready for when the button is pressed again
5) Repeat...
Not easy I know but can it be done?
It takes a Zombie to know a Zombie!!!
For example:
Motion
Heading,
Maybe some particle effects behind it.