Computer Science Canada How would U make a tornado that moves or a car that moves |
Author: | broud13 [ Mon Jun 02, 2008 5:42 pm ] |
Post subject: | How would U make a tornado that moves or a car that moves |
My question is how would i make a tonado out of 'arcs' that moves across the screen while still spining or Maybe a car thta moves across the screen. |
Author: | Insectoid [ Mon Jun 02, 2008 5:54 pm ] |
Post subject: | RE:How would U make a tornado that moves or a car that moves |
Er...change the X and Y values? For spinning, you would have to change the angles of the arcs (i.e add 1 to every angle every time it loops) |
Author: | broud13 [ Mon Jun 02, 2008 5:57 pm ] |
Post subject: | Re: How would U make a tornado that moves or a car that moves |
ah ok i get hte concept but i tried but it doensnt work and replaces my previous image ![]() ![]() |
Author: | broud13 [ Mon Jun 02, 2008 5:58 pm ] |
Post subject: | Re: How would U make a tornado that moves or a car that moves |
well if you can help me that 'd be great or maybemake a car that moves from x=500 to x = 200 or tornado thatd ot he same pls ![]() |
Author: | apomb [ Mon Jun 02, 2008 6:06 pm ] |
Post subject: | RE:How would U make a tornado that moves or a car that moves |
what do you have so far? No one will do it for you, sorry. Provide what you have and we can see what is wrong, and help you fix it. |
Author: | Insectoid [ Mon Jun 02, 2008 6:08 pm ] | ||
Post subject: | RE:How would U make a tornado that moves or a car that moves | ||
Here is a shell on which to base your tornado.
Just add some extra arcs and you're set. Mod edit: Next time, don't post the answer. Instead, gives hints, code snippets, etc. |
Author: | broud13 [ Mon Jun 02, 2008 8:21 pm ] |
Post subject: | Re: How would U make a tornado that moves or a car that moves |
thanks man iut help !! ur pro ![]() |
Author: | broud13 [ Mon Jun 02, 2008 8:53 pm ] |
Post subject: | A friend form thsi forum called insectoid help me make this and I give him all credit now how would I addmore |
he said thast the base of the tornado and I agree he said to add archs to it to make it look like tornado but i dont knwo how ![]() var angle1 : int := 0 var angle2 : int := 90 var height : int := 20 var width : int := 20 var x : int := 1 var y : int := 1 var movex : int := 1 var movey : int := 1 setscreen ("offscreenonly") loop Draw.Arc (x, y, height, width, angle1, angle2, red) View.Update delay (10) cls x += movex y += movey angle1 += 1 angle2 += 1 if x >= maxx then movex := -1 elsif x <= 0 then movex := 1 end if if y >= maxy then movey := -1 elsif y <= 0 then movey := 1 end if end loop |
Author: | apomb [ Mon Jun 02, 2008 9:36 pm ] |
Post subject: | RE:A friend form thsi forum called insectoid help me make this and I give him all credit now how would I addmore |
I wish i had mod abilities to merge this with the other topic you JUST started about this exact same problem. |
Author: | [Gandalf] [ Mon Jun 02, 2008 10:13 pm ] |
Post subject: | RE:How would U make a tornado that moves or a car that moves |
As you wish apomb. ![]() broud, if you want more help and less ridicule (like the first topic of yours that got removed), read up on the rules and posting guidelines... Use [code] tags in the future when you post code... Don't post multiple topics for the same (basically) question... Anyway, unless you're more specific I can only guess that you should use Draw.Arc once again. |
Author: | Insectoid [ Tue Jun 03, 2008 7:59 am ] |
Post subject: | RE:How would U make a tornado that moves or a car that moves |
I didn't give him the whole anwer ...Anyways, I PMed him afterwords telling him not to ask for answers. In case you guys didn't notice, broud is still unable to use this code as it is not complete. To add more arcs, try changing the angle1 and angle2 as well as height and width. If you haven't covered arcs yet, why not search them in the tutorial section? |
Author: | broud13 [ Tue Jun 03, 2008 4:07 pm ] |
Post subject: | Re: How would U make a tornado that moves or a car that moves |
ok thanks im so sorry for pissing u guys off ![]() |
Author: | apomb [ Tue Jun 03, 2008 4:21 pm ] |
Post subject: | RE:How would U make a tornado that moves or a car that moves |
no need to be sorry... but just obey the simple rules of the forum, and you will be rewarded with generous amounts of help. |
Author: | broud13 [ Tue Jun 03, 2008 4:49 pm ] |
Post subject: | Re: How would U make a tornado that moves or a car that moves |
ok thanks yall ![]() |