Game Actor (and Dev) hitting a Wall
mesaticus
Member Posts: 51
(Some of the behavior and bugs I get are just completely baffling. What is the order of execution that this software triggers code. Is there a an equivalent of a debug console with trace or prints statements so I can see what on earth is happening...(I know I know, don't blame the software...Argh))
Here's the deal. I had a rule on my Hero character that basically said "after 1 second, change the linear velocity to X"...so the hero would automatically progress forward after 1 second. If the hero hit a wall or bump, no problem, the user could just hit a jump button, and the hero character would progress forward over the obstacle IF the collision areas cleared. Awesome! Just as expected
So then I thought, "Hey, now let's let the user decide when to start the game". So I made a button. I removed the timer from the hero, and put the exact equivalent of those actions from that Hero's timer on my start button. Awesome. User hits start, things progress forward as expected. But wait!! Now when the user hits a wall, it's as if they can't clear it when they hit jump. What the?!?!. It's the same actions!!! (just with the references change)!
Here's the deal. I had a rule on my Hero character that basically said "after 1 second, change the linear velocity to X"...so the hero would automatically progress forward after 1 second. If the hero hit a wall or bump, no problem, the user could just hit a jump button, and the hero character would progress forward over the obstacle IF the collision areas cleared. Awesome! Just as expected
So then I thought, "Hey, now let's let the user decide when to start the game". So I made a button. I removed the timer from the hero, and put the exact equivalent of those actions from that Hero's timer on my start button. Awesome. User hits start, things progress forward as expected. But wait!! Now when the user hits a wall, it's as if they can't clear it when they hit jump. What the?!?!. It's the same actions!!! (just with the references change)!
Comments