Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / Anyone help with grouping sprites please?

Author
Message
TubbyKustard
8
Years of Service
User Offline
Joined: 10th Jul 2015
Location:
Posted: 10th Jul 2015 21:32
I'm trying to delete 3 sprites at once by clicking on any of the three sprites. I'm also usng ID 1,2,3 for each sprites.

I have this but it only deletes one at a time:

if ( GetPointerPressed ( ) = 1 )
sprite = GetSpriteHit ( GetPointerX ( ), GetPointerY ( ))
DeleteSprite(sprite)
endif

select sprite

case 1:
print("1")
endcase
case 2:
Print("2")
endcase
case 3:
Print("3")
endcase
endselect

I thank you in advance for anyone who tries to help me.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 10th Jul 2015 23:21 Edited at: 10th Jul 2015 23:22
try this...



Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt

Login to post a reply

Server time is: 2024-04-25 06:39:45
Your offset time is: 2024-04-25 06:39:45