How can i delete an actor from a scene when it is selected?
DarkUndeadSpawn
Member Posts: 64
Hello,
Well i wanted to know. How may i delete an actor when it is selected?
I have the actor to be highlighted when it is clicked.
But i will like to know how to delete an actor when of course the actor is highlighted!! But when it is highlighted i would like
to make another actor delete when it is pressed!!
I have got really close to it but it only deletes the new actor that was spawned not the one i have selected!!
I have also made a spawn limit to 8 actors. How will i make it one less actor to spawn for the number count down?!
Example:
Also i would like it to do touch.pressed to do 1 less every time deleted in the spawn limit!!
Like if i have 8/8 when deleted i want it to have 7/8 and the pillar to be removed!! But only when it is selected!!
I know my game isn't much but im trying!!
My next game i hope i will get to pay for an artist to make all my art for me!!
Thanks and have a nice day!!
Sincerly,
DarkUndeadSpawn
Well i wanted to know. How may i delete an actor when it is selected?
I have the actor to be highlighted when it is clicked.
But i will like to know how to delete an actor when of course the actor is highlighted!! But when it is highlighted i would like
to make another actor delete when it is pressed!!
I have got really close to it but it only deletes the new actor that was spawned not the one i have selected!!
I have also made a spawn limit to 8 actors. How will i make it one less actor to spawn for the number count down?!
Example:
http://i995.photobucket.com/albums/af78/killa1234_2010/Selected.pngYou see the x i would like to have that clicked then to delete it!!
Also i would like it to do touch.pressed to do 1 less every time deleted in the spawn limit!!
Like if i have 8/8 when deleted i want it to have 7/8 and the pillar to be removed!! But only when it is selected!!
I know my game isn't much but im trying!!
My next game i hope i will get to pay for an artist to make all my art for me!!
Thanks and have a nice day!!
Sincerly,
DarkUndeadSpawn
Comments
Thanks
Sincerly,
DarkUndeadSpawn
I need help? Well here it is explained maybe i can get an answer!!
1. Well i have a limit of spawns and you can move the spawned sprites around and it highlights when you select them!!
2. I use seperate buttons to spawn the different rotation of buttons and use other buttons to pause/reset scene and one to delete objects!!
3. Well i been having trouble finding out. How may i delete 1 object at a time when selected only?
4. I been getting closer to finding out the problem but i still have been looking into it but i do not see any type of tutorial or on how to do so?
5. What i would like to find out is when i select a sprite it will be highlighted but when i press the delete button i want it to be deleted and only that one that has been highlighted only!!
Now does this make any sense to you?
I hope your getting the idea
Thanks,
Have a nice day.
Sincerly,
DarkUndeadSpawn
this is the easiest way to do this