Author |
Message |
hskhan
|
|
|
|
|
Sponsor Sponsor
|
|
|
Tony
|
Posted: Sun Jun 15, 2003 6:33 pm Post subject: (No subject) |
|
|
even if you you sprites, you still need to keep variables for X/Y location of the sprite itself... use that and width/height of the sprite to construct a box around your image, then use rectangle collision detection
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
hskhan
|
Posted: Sun Jun 15, 2003 6:59 pm Post subject: (No subject) |
|
|
tony wrote: even if you you sprites, you still need to keep variables for X/Y location of the sprite itself... use that and width/height of the sprite to construct a box around your image, then use rectangle collision detection
i didnt want to do that. could you kindly do so for only one of the cars, i really hate sprites. i dont even know how to do what you just said. it would be much appreciated.
|
|
|
|
|
|
Andy
|
Posted: Sun Jun 15, 2003 7:00 pm Post subject: (No subject) |
|
|
well u should go to the tips section and read up some collision detection tutorials instead of getting others to do ur work for u
|
|
|
|
|
|
hskhan
|
Posted: Sun Jun 15, 2003 7:02 pm Post subject: (No subject) |
|
|
dodge_tomahawk wrote: well u should go to the tips section and read up some collision detection tutorials instead of getting others to do ur work for u
how can i make sprites output the coordinates? seems like they are stuck in there, and cant be used by the global variables.
|
|
|
|
|
|
Andy
|
Posted: Sun Jun 15, 2003 7:04 pm Post subject: (No subject) |
|
|
what are u trying to do? move the sprites?
|
|
|
|
|
|
Andy
|
Posted: Sun Jun 15, 2003 7:06 pm Post subject: (No subject) |
|
|
o and btw, turing's sprite mudule doesn't work very well, its very very buggy so i wouldn't use it if i were u, my best bet is to make ur own module
have the names of the sprites in a textfile, and have an array for the sprite IDs by reading it off the textfile
|
|
|
|
|
|
hskhan
|
Posted: Sun Jun 15, 2003 7:09 pm Post subject: (No subject) |
|
|
the sprites move fine, but i simply need to add collision to it. the problem is that i cannot gain access to the variables inside the sprites. once i get access to them, i'll be a-ok.
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Tony
|
Posted: Sun Jun 15, 2003 8:25 pm Post subject: (No subject) |
|
|
ok... how do you move your Sprites? using X and Y variables...
use same variables for collision detection
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
hskhan
|
Posted: Sun Jun 15, 2003 8:49 pm Post subject: (No subject) |
|
|
^but they are inside the sprites. i need to put the collision in the main prog. could you please see my prog and tell me how. im extremely confused. your time and knowledge would be greatly appreciated. thanks.
|
|
|
|
|
|
|