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

Username:   Password: 
 RegisterRegister   
 Help - Basic Drawing/Animation
Index -> Programming, Turing -> Turing Help
Goto page 1, 2  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Namis




PostPosted: Thu Sep 11, 2003 2:48 pm   Post subject: Help - Basic Drawing/Animation

Embarassed

I was wondering if someone could help me with some help for someone who JUST started turing, i mean like two days ago.

Any tips on basic animation, Im aware of X/Y coords, and locate and such, and color/colorback, but how about some cool stuff? Sorry if this is in the tutorial section, but i didnt see anything, Anyway thats it
Sponsor
Sponsor
Sponsor
sponsor
krishon




PostPosted: Thu Sep 11, 2003 4:30 pm   Post subject: (No subject)

i dunno bout animations...maybeu can take a picture and locate it in different places Laughing
Tony




PostPosted: Thu Sep 11, 2003 4:58 pm   Post subject: (No subject)

some tutorials on animation

images
smooth animation

those two should provide some explanations on HOW to use image files and how to move them around smoothly.

if the use of images would seem too advanced, try to start out with

basic shapes

the basics of animations are ofcourse altering the image, ether its location or shape.

code:

for i:1..maxx
Draw.Oval(i,100,5,5,red) %X,Y, xRadius, yRadius, Color
cls
end for
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Namis




PostPosted: Thu Sep 11, 2003 6:13 pm   Post subject: Thanks

Thanks tony, This forum rules, quick responses Very Happy
krishon




PostPosted: Thu Sep 11, 2003 6:20 pm   Post subject: (No subject)

partly cuz ppl are on at the right time Very Happy
Namis




PostPosted: Thu Sep 11, 2003 6:26 pm   Post subject: Small Problem

Thanks for the tip Tony, But im getting a problem, maybe someone can help


var mypic : int := Pic.FileNew ("C:\Lolol.jpg")
Pic.Draw (mypic, maxx div 2, maxy div 2, 0)

Getting an error with C:\L ( \L )

Hopefully someone can solve this :> Loading a picture would be kewl
krishon




PostPosted: Thu Sep 11, 2003 6:28 pm   Post subject: (No subject)

um...pic files should be in the same directory as the turing file
Tony




PostPosted: Thu Sep 11, 2003 6:31 pm   Post subject: (No subject)

I'm not sure... maybe the file isn't there, or you spelled it worng...

usually helps if you post what debugger tells you Confused

Also since position of the image is suppost to be an integer, maxx/2 might not work
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
krishon




PostPosted: Thu Sep 11, 2003 6:33 pm   Post subject: (No subject)

i think it is cuz the file's rite in the C:\\ Drive........well namis will tell us the right solution nwayz
Namis




PostPosted: Thu Sep 11, 2003 6:43 pm   Post subject: Bleh

Does the File have to be saved for it to load images?

Its not in the same folder as turing, and its spelt right :>
krishon




PostPosted: Thu Sep 11, 2003 6:45 pm   Post subject: (No subject)

um...do u have the pic in the same director as the program u wrote is in?
Namis




PostPosted: Thu Sep 11, 2003 6:46 pm   Post subject: Yep

Sure do
Dan




PostPosted: Thu Sep 11, 2003 6:47 pm   Post subject: (No subject)

did you chage your code to what krishon kind of pointed out?

you need \\ in turing not just \
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Namis




PostPosted: Thu Sep 11, 2003 6:50 pm   Post subject: ahh

ahh okay, didnt use \\

ill give it a whirl now, Neutral
Namis




PostPosted: Thu Sep 11, 2003 6:52 pm   Post subject: Got it

Got it, Well Sorta, Only about 1/5 of the pic is on screen, just the bottom portion, guess i cant use
Pic.Draw (mypic, maxx div 2, maxy div 2, 0)
ill mess around with location, Thanks for your help
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 2  [ 25 Posts ]
Goto page 1, 2  Next
Jump to:   


Style:  
Search: