understand that the
sprite command does 2 things at once. it
creates and positions the sprite.
in your example:
line 1: you create sprite
1 using image
1 and place it at 100,200
line 2: clones the sprite as sprite
2, as you'd expect, using the same image
1 and places it at the same 100,200 coordinates.
line 3: re-
creates sprite
2, places it at 150,250 but uses image
2 (because you told it to) which may or may not exist; that's your white dot and where the mistake lies.
in your example,
clone sprite is unneccesary (
clone sprite has it's uses but it doesn't appear fitting here). if you want a second sprite, simply create it via the same
sprite command while assigning the same image as the first. ie:
sprite 1,100,200,
1
sprite 2,150,250,
1 (not 2, unless you really want to use image 2)
hope this helps. good luck!
btw, here's a bit of code to show a basic use for
clone sprite.
rem grab a red square for our sprites as image 1
cls rgb(255,0,0)
get image 1,0,0,32,32,1
rem create 2 sprites
sprite 1, 100,100, 1
clone sprite 1,2
do
rem rotate them in opposite directions
rotate sprite 1, sprite angle (1) + 0.1
rotate sprite 2, sprite angle (2) - 0.1
loop
Virtual Nomad @ California, USA
AMD Phenomâ„¢ X4 9750 Quad-Core @ 2.4 GHz . 8 GB PC2-6400 RAM
ATI Radeon HD 3650 @ 512 MB . Vista Home Premium 64 Bit