Computer Science Canada Late collision and sometimes no collision |
Author: | Newguy [ Thu May 01, 2008 7:29 pm ] |
Post subject: | Late collision and sometimes no collision |
Ok in my game I have they guy shooting and moving fine and it can also shoot stuff but the enemies die after the bullet moves through them and sometimes they don't die at all. I have no idea why this is happening. Help me figure out what is wrong. Thanks for any help. |
Author: | The_Bean [ Thu May 01, 2008 8:00 pm ] |
Post subject: | Re: Late collision and sometimes no collision |
What version of turing are you using. On mine you can't use gif's. I managed to change them to jpg but only the enemies showed up flying across the screen, with no character or bullets. |
Author: | Newguy [ Thu May 01, 2008 8:24 pm ] |
Post subject: | Re: Late collision and sometimes no collision |
The latest version of Turing. You can find it on holtsoft.com I believe. Look at my attachment if you are having problems with .gifs |
Author: | The_Bean [ Thu May 01, 2008 9:13 pm ] | ||||
Post subject: | Re: Late collision and sometimes no collision | ||||
thats why i didn't get 4.1.1 a , but now that i have it i might have figured out whats going on. why do u have XCT and enemy_x
your defining the x and y positions of the enemies and then making XCT and enemy_x = each other.
it might make things alot easier if you were to just use one or the other, not XCT and enemy_x |
Author: | Newguy [ Sat May 03, 2008 3:20 pm ] | ||||
Post subject: | Re: Late collision and sometimes no collision | ||||
The_Bean @ Thu May 01, 2008 9:13 pm wrote: thats why i didn't get 4.1.1 a , but now that i have it i might have figured out whats going on.
why do u have XCT and enemy_x
your defining the x and y positions of the enemies and then making XCT and enemy_x = each other.
it might make things alot easier if you were to just use one or the other, not XCT and enemy_x Thanks for the help. Yeah I made XCT = enemy_x because I wanted real numbers for the enemy speed but no matter. Speed 1 is fine. So I took out all the extra code that you told me to and now if it collides with the enemy the enemy dies. But the delayed death still occurs. So after it is past the enemy, the enemy dies. If you want a look at the changed code than I attached it below. Thanks for your help. ![]() |