Simple Games's Forum Posts

  • Create separate layer for UI and set it's parallax to 0

  • It's not clear to me, does video work at all? If not, maybe you should put the file name in H.264 source instead of WebM source in properties. Another possible reason - maybe you just forgot to include this event sheet into the main one (Do other events from this sheet work?)

  • Video object has property Autoplay when you select it in editor

  • Did you set Autoplay in properties to No?

  • Pin behavior, Rope style - might be what you are looking for

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.