Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Sprite.SetPosition Syntax
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
eggplant_burger




PostPosted: 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??
Sponsor
Sponsor
Sponsor
sponsor
Mazer




PostPosted: Thu Jul 03, 2003 9:31 am   Post subject: (No 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.
Andy




PostPosted: Thu Jul 03, 2003 9:47 am   Post subject: (No subject)

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




PostPosted: Thu Jul 03, 2003 1:07 pm   Post subject: (No subject)

I usually use the editor reference (F9), but for some reason, nothing in the Sprite class has a reference page.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: