Computer Science Canada Dont know how to do collission with pictures |
Author: | caldrium [ Tue Jan 24, 2006 12:37 pm ] | ||
Post subject: | Dont know how to do collission with pictures | ||
well i looked at just about all of the collission things, in the collission detection post, i changed all the variables according to what i used, but it still didnt work. If anyone can fill in the spot with code,or tell how to do it, that would be sick. I have turing 4.0.2 if that makes any difference, and this is the last thing i need for my program. Thanks in advance for your help. P.S. Download the game if you want it to run cause of graphics, or you can just look at my code P.P.S The spot where im putting the collission is the last for (empty right now) at the bottom.
|
Author: | caldrium [ Tue Jan 24, 2006 1:14 pm ] |
Post subject: | |
i dont think the attachment thing worked. sorry for the 2x post |
Author: | Albrecd [ Tue Jan 24, 2006 2:19 pm ] | ||
Post subject: | |||
Okay, in order to detect colision:
|
Author: | caldrium [ Tue Jan 24, 2006 5:08 pm ] |
Post subject: | |
hmmn.. it still didnt work :S i copy+pasted ur thing and plugged in my thing but it still didnt work btw my x1 :=maxX x2:=sharkx(xx) (its in an array, btw i have the if in a for statement) y1:= maxY y2:= sharky(xx) the program still runs so its no variable name error, but when i move right up to them nothing happens |
Author: | caldrium [ Tue Jan 24, 2006 8:23 pm ] |
Post subject: | |
BUMP :S |
Author: | MysticVegeta [ Wed Jan 25, 2006 6:12 pm ] | ||
Post subject: | |||
No need to bump after 3 hours. Anyways, You can always use the distance formula to find distance better 2 co-ordinates in a cartesian plane. Just imagine that the turing output window is the cartesian plane.
|
Author: | caldrium [ Wed Jan 25, 2006 7:07 pm ] |
Post subject: | |
ok cool, so when the collission happens what would i make distances =? like if distance = 0 collission :=true (?) or what would i do |
Author: | caldrium [ Wed Jan 25, 2006 8:37 pm ] |
Post subject: | |
OH nevermind, i found out my problem the colission wasnt a proper spot, making it not work. thanks for the help |