Computer Science Canada ANimation with stairs |
Author: | enimirahi [ Sun Apr 19, 2009 4:22 pm ] | ||
Post subject: | ANimation with stairs | ||
Hey how do i make these stairs even so they all look the same and follow the same patter cuz some of my stairs are bigger then others
|
Author: | saltpro15 [ Sun Apr 19, 2009 5:17 pm ] | ||
Post subject: | RE:ANimation with stairs | ||
that would be because there are different values between your x1 and x2, i suggest making your life easier and doing something like
in a pattern like that, it'll eliminate a lot of headaches |
Author: | enimirahi [ Sun Apr 19, 2009 5:33 pm ] |
Post subject: | RE:ANimation with stairs |
ok thnx |
Author: | enimirahi [ Sun Apr 19, 2009 6:01 pm ] | ||||
Post subject: | RE:ANimation with stairs | ||||
so i did the stairs but how do I make the ball bounce down those stairs cuz i thought it was like the bottem code but it doesn't work plz its due tommorow this thing
Mod Edit: Remember to use syntax tags! Thanks ![]()
|
Author: | saltpro15 [ Sun Apr 19, 2009 6:46 pm ] | ||
Post subject: | RE:ANimation with stairs | ||
here, I did the first bounce for you, just continue this pattern
you call a procedure to draw the stairs over and over so they don't get wiped by the cls[/syntax] |
Author: | enimirahi [ Sun Apr 19, 2009 7:21 pm ] |
Post subject: | RE:ANimation with stairs |
omg wow thanks ur awsume |
Author: | saltpro15 [ Sun Apr 19, 2009 8:42 pm ] |
Post subject: | RE:ANimation with stairs |
lol no, Tony and Dan are awesome. I'm just bored :p |
Author: | DifinityRJ [ Mon Apr 20, 2009 11:13 am ] | ||
Post subject: | Re: ANimation with stairs | ||
You can put the stairs into a for statement to make it more efficient. Change the variable 'number_of_stairs' to add more stairs, without doing extra work. Also add some basic physics, along with some sort of collision (I did whatdotcolor because I didn't track the x and y values of the stairs, so its a bit difficult to do math based collision)
|
Author: | enimirahi [ Tue Apr 21, 2009 3:58 pm ] |
Post subject: | RE:ANimation with stairs |
wowo thanks |