Computer Science Canada bouncing pictures with two |
Author: | gilbamy [ Mon May 15, 2006 11:49 am ] | ||
Post subject: | bouncing pictures with two | ||
alright well i need my two pictures to bounce around on the screen and they don't work one comes then goes then the second picture appears in its place i need help here is my code
|
Author: | ZeroPaladn [ Mon May 15, 2006 12:29 pm ] | ||||||
Post subject: | |||||||
Allright, first off, if you want pictures to bounce off the screen, scrap the Pic.New, what you need is Pic.Draw. To make Pic.Draw work, you'll need a few things first. (1) You need to set the screen...
This should stop any flicker when drawing the pictures if used in tandem with this...
Next, your code to make the picture change direction when the collision detection kicks in, is all wrong. Here is something I cooked up, check it out, and see how it works...
Since this is (or seems to be) a school project, look at these and you should be able to figure out yoru problem.[/code] |