Behaviors not working at max velocity...?

Is there a work around for this problem?

I have an actor being thrown but when it hits near or at its max velocity the behaviors aren't recognized and collision detection only works sometimes, but not on everything. This is coming from a thread I posted yesterday where @tatiang helped me reach this conclusion (see link below, with source for a demo where the issue can be seen).

Is there a way to make this issue not happen?

http://forums.gamesalad.com/discussion/55174/is-it-possible-to-keep-the-mouse-from-passing-a-certain-point#latest

Answers

  • huppertatorhuppertator Member Posts: 34
    By maximum velocity I mean max speed that is set within the actor's motion attributes. Anyone have an idea what I can do to solve this issue?
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    My understanding of it is that actors don't move through every pixel when they are traveling at high velocity, but rather skip along from position to position, thereby missing parts of the collision detection.

    You can check this by adding a Log Debugging Statement with self.Position.X or Y and wrapping it in an every 0 seconds timer and then watching the Debugger window.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    @uptimistik That's interesting. I've had mixed results. I just created a test project and set the actor's Move speed to 5000 and set "walls" to destroy if colliding with it and only two of three walls on the screen disappeared. When I then changed the speed to 10000 and had each wall change a self.counter attribute, they all counted up. Bizarre.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • 3itg3itg Member, PRO Posts: 382
    Something odd is happening with collide, I changed my bullets and collide stopped working consistently.
  • huppertatorhuppertator Member Posts: 34
    edited March 2013
    The tutorial mostly works. But how do I get my actor to completely stop after I hit the target? Also how to keep the 'bomb' from being touched after it's passed the line? http://bit.ly/109jQaC
  • huppertatorhuppertator Member Posts: 34
    That was easy enough. Thanks for the help! I will come back if I run into further issues.
Sign In or Register to comment.