Game Actor (and Dev) hitting a Wall

(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)!

Comments

  • KevinCrossKevinCross London, UKMember Posts: 1,894
    In answer to your first question there is a basic debugger window, you can access it from the top menu. There's a behaviour in the list of behaviours to print to the debug window.
  • mesaticusmesaticus Member Posts: 51
    Ah. Lifesaver. Thanks!
  • NalycanNalycan Member, PRO Posts: 97
    Maybe the timer-function is set to repeat the velocity action. While a press-button only works until the actor velocity is changed or stopped by wall. Try putting the velocity command in an timer, say 0.1 sec. repeat. Im currently using this time-method for stopping my actor completely, and that works. Anyway, good luck!
Sign In or Register to comment.