Computer Science Canada

Sprite.SetPosition Syntax

Author:  eggplant_burger [ Wed Jul 02, 2003 11:39 pm ]
Post subject:  Sprite.SetPosition Syntax

I'm using sprites for this program (obviously), but I forgot how to use Sprite.SetPosition (in 3.1). Can someone please refresh my memory??

Author:  Mazer [ Thu Jul 03, 2003 9:31 am ]
Post subject: 

Sprite.SetPosition (spriteID, x, y, true/false)

spriteID is the variable for the sprite you're using.
x and y are the x and y coordinates
true/false is just a boolean: true if the sprite is centered on the coordinates, false if the coords are at the bottom left of the sprite. (i think)

it's actually been quite a while (more than a year) since i've even done anything with sprites. you're actually better off without them. switch to turing 4.0 if you can so you can use View.Update which looks much better.

Author:  Andy [ Thu Jul 03, 2003 9:47 am ]
Post subject: 

if ur in doubt of what a command does or how to use it, type it in the editor and press F9

Author:  eggplant_burger [ Thu Jul 03, 2003 1:07 pm ]
Post subject: 

I usually use the editor reference (F9), but for some reason, nothing in the Sprite class has a reference page.


: