
-----------------------------------
Namis
Thu Sep 11, 2003 2:48 pm

Help - Basic Drawing/Animation
-----------------------------------
:oops: 

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

-----------------------------------
krishon
Thu Sep 11, 2003 4:30 pm


-----------------------------------
i dunno bout animations...maybeu can take a picture and locate it in different places  :lol:

-----------------------------------
Tony
Thu Sep 11, 2003 4:58 pm


-----------------------------------
some tutorials on animation


for i:1..maxx
Draw.Oval(i,100,5,5,red) %X,Y, xRadius, yRadius, Color
cls
end for


-----------------------------------
Namis
Thu Sep 11, 2003 6:13 pm

Thanks
-----------------------------------
Thanks tony, This forum rules, quick responses :D

-----------------------------------
krishon
Thu Sep 11, 2003 6:20 pm


-----------------------------------
partly cuz ppl are on at the right time  :D

-----------------------------------
Namis
Thu Sep 11, 2003 6:26 pm

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
Thu Sep 11, 2003 6:28 pm


-----------------------------------
um...pic files should be in the same directory as the turing file

-----------------------------------
Tony
Thu Sep 11, 2003 6:31 pm


-----------------------------------
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

-----------------------------------
krishon
Thu Sep 11, 2003 6:33 pm


-----------------------------------
i think it is cuz the file's rite in the C:\\ Drive........well namis will tell us the right solution nwayz

-----------------------------------
Namis
Thu Sep 11, 2003 6:43 pm

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
Thu Sep 11, 2003 6:45 pm


-----------------------------------
um...do u have the pic in the same director as the program u wrote is in?

-----------------------------------
Namis
Thu Sep 11, 2003 6:46 pm

Yep
-----------------------------------
Sure do

-----------------------------------
Dan
Thu Sep 11, 2003 6:47 pm


-----------------------------------
did you chage your code to what krishon kind of pointed out?

you need \\ in turing not just \

-----------------------------------
Namis
Thu Sep 11, 2003 6:50 pm

ahh
-----------------------------------
ahh okay, didnt use \\

ill give it a whirl now, :|

-----------------------------------
Namis
Thu Sep 11, 2003 6:52 pm

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

-----------------------------------
krishon
Thu Sep 11, 2003 6:54 pm


-----------------------------------
np....try resizing the picture if u want in photoshop or paint...wait paint is not too good

try changing the co-ordinates then

-----------------------------------
Namis
Thu Sep 11, 2003 6:57 pm

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?

-----------------------------------
Namis
Thu Sep 11, 2003 6:58 pm

* 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?

-----------------------------------
krishon
Thu Sep 11, 2003 6:58 pm


-----------------------------------
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

-----------------------------------
Namis
Thu Sep 11, 2003 7:04 pm

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.

-----------------------------------
krishon
Thu Sep 11, 2003 7:06 pm


-----------------------------------
ye...try resizing in photoshop cuz paint screws the pics up a lot

-----------------------------------
Namis
Thu Sep 11, 2003 7:15 pm


-----------------------------------
Will Do.

-----------------------------------
Tony
Thu Sep 11, 2003 7:36 pm


-----------------------------------
as for text overwriting it... try using Font.Draw instead. We got a tutorial on using Fonts in tutorials section.

-----------------------------------
krishon
Thu Sep 11, 2003 7:38 pm


-----------------------------------
some nice fonts at that :D

-----------------------------------
Namis
Thu Sep 11, 2003 7:50 pm


-----------------------------------
Kewl Ill Check Em Out
