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.
if ( GetPointerPressed ( ) = 1 )
hit = GetSpriteHit ( GetPointerX ( ), GetPointerY ( ) )
if ( GetPointerPressed ( ) = 1 ) //you have clicked the mouse button
hit = GetSpriteHit ( GetPointerX ( ), GetPointerY ( ) ) //checks if there is a sprite at the location of the mouse
for num = 0 to 9 //for/next counts from 0 to 9 in otherwords repeats everything between the for and the next statements
if hit=myObjects[num]=hit //youve clicked one //
setObjectVisible(myobjects[num],0) //sets the visibilty to off for that object you clicked
Login to post a reply