How can i delete an actor from a scene when it is selected?

DarkUndeadSpawnDarkUndeadSpawn Member Posts: 64
edited July 2012 in Working with GS (PC)
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:
imagehttp://i995.photobucket.com/albums/af78/killa1234_2010/Selected.png
You 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

  • DarkUndeadSpawnDarkUndeadSpawn Member Posts: 64
    Ok example the button like zombie drop but when the platform is selected i want it to delete it when i press the other actor! Is that a little better?

    Thanks

    Sincerly,
    DarkUndeadSpawn
  • DarkUndeadSpawnDarkUndeadSpawn Member Posts: 64
    edited July 2012
    Hello,

    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
  • J_PANJ_PAN Member Posts: 140
    how about when touch is pressed/released, destroy actor
    this is the easiest way to do this
  • DarkUndeadSpawnDarkUndeadSpawn Member Posts: 64
    how about when touch is pressed/released, destroy actor
    this is the easiest way to do this
    Ok well i did so and it did not work for much!!

  • J_PANJ_PAN Member Posts: 140
    @DarkUndeadSpawn, really?
  • DarkUndeadSpawnDarkUndeadSpawn Member Posts: 64
    @DarkUndeadSpawn, really?
    Yes is there a better solution please!! Cause i would like a good solution for single selection!! Then using another sprite to delete it!!
Sign In or Register to comment.