Accelerate bug. Help? :)

RHRH Member Posts: 1,079
edited November -1 in Working with GS (Mac)
I found a bug when using accelerate. It seems to override a .self attribute for some reason.

By this i mean I have a rule set up like so:

image
[this is everything on the only actor in the project]

When self.go is false and I have changed the actors self.motion X and Y to 0 accelerate is still in effect as the actor moves down the page in a jerky fashion although the speed is constant, it isn't actually accelerating. I know it is the accelerate rule that is causing this because if I remove it the actor won't move at all. :/

Here is an example project: http://gamesalad.com/game/8167

Annoying as it's getting in the way of my game. Can anyone see what I'm doing wrong? Thanks

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    How can you have a -5 as your position y?
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    I'll report this, but as a work around, put a timer around the Change Attribute of the Linear Velocity, and set it to after .01 seconds.
  • RHRH Member Posts: 1,079
    CodeMonkey said:
    I'll report this, but as a work around, put a timer around the Change Attribute of the Linear Velocity, and set it to after .01 seconds.

    Perfect, thanks! For anyone else that has this problem, I found it a little more effective to keep the change attribute as well as add one with a timer around. This way I didn't get the slight delay in stopping.
    tenrdrmer said:
    How can you have a -5 as your position y?

    -5 exists, it's just out of view of the camera.
  • HachikoHachiko Member Posts: 330
    I had this one time. If I remember correctly, instead of timer that sucks up the already frail performance, I just changed the linear movement not to 0, but to something like 0.1 or the likes.
    It actually worked, but I can't be sure because I don't have that proj anymore :\
  • GraybayGraybay Member Posts: 114
    I also used the same solution as Hachiko, although I had to change the linear velocity to 8 instead of 0 to stop it. Tested again and again in my project and it never failed.
Sign In or Register to comment.