Simple Games's Recent Forum Activity

  • Few possible reasons are : maybe you forgot to include this event sheet into the main one, maybe collision polygons are wrong, if the projectile is moving - it may be too fast so collisions can't be detected

  • Maybe the problem is that the Sprite automatically turns towards the destination? So if it moves left - it's upside-down? If that's the case - you need to disable Set angle property for the behavior you are using for movement. But in that case you can't compare Sprite's angle, you would need to compare Sprite's angle of motion

  • Seems okay. What is weird about it? Does it still not walk east/west?

  • Did you try my version? Can you show a screenshot of events and also Animation editor?

  • I would use is within angle instead of is between angles to make it more readable.

    is within 45 degrees of 0 - East

    is within 45 degrees of 45 - SE

    is within 45 degrees of 90 - South

    is within 45 degrees of 135 - SW

    is within 45 degrees of 180 - West

    is within 45 degrees of 225 - NW

    is within 45 degrees of 270 - North

    is within 45 degrees of 315 - NE

  • It depends on how often you apply the impulse, if it's every tick - I would imagine dop2000's code should get the Car close to your Destination point and then overshoot back and forth within few pixels. So you should stop the code when DestinationY-5 < Car.Y < DestinationY+5 . Easiest way to do this is with conditions:

    Car.Y > DestinationY-5 and Car.Y < DestinationY+5 then do nothing

    Else Apply impulse X=0, Y= clamp((DestinationY-Car.y)/100, -1, 1)

  • You need to add some margin, because it will never come to the exact point you are aiming for. For example you want car to go to Y=100, car.Y can be at 100.015469, but it will never be exactly 100. So you need to stop the car when it's between Y 99 and 101 (you can experiment with margins to see what works for you).

  • Do you want the character to move towards click? In that case it's better to delete 8-direction behavior and use MoveTo behavior instead. Then on left button click: Sprite move to (Mouse.X, Mouse.Y)

  • Oh, now I see - in actions you need to change set animation action. Instead of "Walk"&Sprite.DirectionName you should use ""Walk_"&Sprite.DirectionName. You missed the underscore.

  • Okay, can you show animation editor?

  • From this screenshot it should work if all conditions are met and there are no spelling errors in animation names. Can you show events where you set Sprite's angle?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Then it's impossible to tell without seeing your events

Simple Games's avatar

Simple Games

Member since 12 May, 2015

Twitter
Simple Games has 6 followers

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • Lightning Draw First person to up-vote a new Construct 3 release
  • Email Verified

Progress

18/44
How to earn trophies