Setvirtualresolution(640,480)
ResetTimer()
//Create test sprite cube
id=CreateSprite(0)
SetSpriteColor(id,255,255,0,255)
SetSpriteSize(id,50,50)
SetSpritePosition(id,200,200)
Do
For i=id-1 to id+1
If GetSpriteExists(i)=1
Print("Sprite "+Str(i,0)+" Exists")
EndIf
If GetSpriteExists(i)=0
Print("Sprite "+Str(i,0)+" Does Not Exist")
EndIf
Next i
Sync()
If Timer()>15 Then Exit
Loop
End
Help make AGK better by submitting an example for this command! (All examples are subject to approval)
Setvirtualresolution(640,480) ResetTimer() //Create test sprite cube id=CreateSprite(0) SetSpriteColor(id,255,255,0,255) SetSpriteSize(id,50,50) SetSpritePosition(id,200,200) Do For i=id-1 to id+1 If GetSpriteExists(i)=1 Print("Sprite "+Str(i,0)+" Exists") EndIf If GetSpriteExists(i)=0 Print("Sprite "+Str(i,0)+" Does Not Exist") EndIf Next i Sync() If Timer()>15 Then Exit Loop End