Computer Science Canada Help - Basic Drawing/Animation |
Author: | Namis [ Thu Sep 11, 2003 2:48 pm ] |
Post subject: | Help - Basic Drawing/Animation |
![]() 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 |
Author: | krishon [ Thu Sep 11, 2003 4:30 pm ] |
Post subject: | |
i dunno bout animations...maybeu can take a picture and locate it in different places ![]() |
Author: | Tony [ Thu Sep 11, 2003 4:58 pm ] | ||
Post 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.
|
Author: | Namis [ Thu Sep 11, 2003 6:13 pm ] |
Post subject: | Thanks |
Thanks tony, This forum rules, quick responses ![]() |
Author: | krishon [ Thu Sep 11, 2003 6:20 pm ] |
Post subject: | |
partly cuz ppl are on at the right time ![]() |
Author: | Namis [ 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 |
Author: | krishon [ Thu Sep 11, 2003 6:28 pm ] |
Post subject: | |
um...pic files should be in the same directory as the turing file |
Author: | Tony [ Thu Sep 11, 2003 6:31 pm ] |
Post 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 ![]() Also since position of the image is suppost to be an integer, maxx/2 might not work |
Author: | krishon [ Thu Sep 11, 2003 6:33 pm ] |
Post subject: | |
i think it is cuz the file's rite in the C:\\ Drive........well namis will tell us the right solution nwayz |
Author: | Namis [ 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 :> |
Author: | krishon [ Thu Sep 11, 2003 6:45 pm ] |
Post subject: | |
um...do u have the pic in the same director as the program u wrote is in? |
Author: | Namis [ Thu Sep 11, 2003 6:46 pm ] |
Post subject: | Yep |
Sure do |
Author: | Dan [ Thu Sep 11, 2003 6:47 pm ] |
Post subject: | |
did you chage your code to what krishon kind of pointed out? you need \\ in turing not just \ |
Author: | Namis [ Thu Sep 11, 2003 6:50 pm ] |
Post subject: | ahh |
ahh okay, didnt use \\ ill give it a whirl now, ![]() |
Author: | Namis [ 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 |
Author: | krishon [ Thu Sep 11, 2003 6:54 pm ] |
Post subject: | |
np....try resizing the picture if u want in photoshop or paint...wait paint is not too good try changing the co-ordinates then |
Author: | Namis [ Thu Sep 11, 2003 6:57 pm ] |
Post subject: | OverWriting |
After i have my var mypic : int := Pic.FileNew ("C:\\Lolol.jpg") Pic.Draw (mypic, maxx div 2, maxy div 2, 0) and then put " blah blah blah " after mypic, the put statements overwrite the pic, is there anyway for the pic to stay on bottom/top? |
Author: | Namis [ Thu Sep 11, 2003 6:58 pm ] |
Post subject: | * remembers * |
var mypic : int := Pic.FileNew ("C:\\Lolol.jpg") Pic.Draw (mypic, maxx div 2, maxy div 2, 0) is 0 = overwrite? and 1= Static Backround? |
Author: | krishon [ Thu Sep 11, 2003 6:58 pm ] |
Post subject: | |
i guess for top u'd put 0 for x,0 for y and maxy and 0 for x to make it at the bottom |
Author: | Namis [ Thu Sep 11, 2003 7:04 pm ] |
Post subject: | 0's |
With 0 Defaults The pic doesnt compile, its a rather large pic though, as i move the numbers up i can see more, so far i can see about half of it at 5/5/2 Guess ill have to definately re-size it. |
Author: | krishon [ Thu Sep 11, 2003 7:06 pm ] |
Post subject: | |
ye...try resizing in photoshop cuz paint screws the pics up a lot |
Author: | Namis [ Thu Sep 11, 2003 7:15 pm ] |
Post subject: | |
Will Do. |
Author: | Tony [ Thu Sep 11, 2003 7:36 pm ] |
Post subject: | |
as for text overwriting it... try using Font.Draw instead. We got a tutorial on using Fonts in tutorials section. |
Author: | krishon [ Thu Sep 11, 2003 7:38 pm ] |
Post subject: | |
some nice fonts at that ![]() |
Author: | Namis [ Thu Sep 11, 2003 7:50 pm ] |
Post subject: | |
Kewl Ill Check Em Out |