Baked's Recent Forum Activity

  • can you please save it as a .capx? in a caproj file, the sprites are not included.

    I think, the image is just facing the wrong position, but I can only tell for sure, when you provide a .capx

    EDIT: Made an example of a sprite that always faces into direction of movement. Link

    Updated my project file for you.

    And I can't oipen yours as its version is newer than mine. I thought I had the most recent version though? :/

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • here is what you need:

    Global variables

    int PrevX;

    int PrevY;

    On Every Tick:

    {

    Set angle to the angle between the current X and Y, and the Previous X and Y

    Set PrevX = CurrentX;

    Set PrevY = CurrentY;

    }

    Won't those global variables be overwriten since I have more than one instance of an object?

    Also isn't the angle between previous and current X,Y exactly the same as velocity X,Y?

  • Hi,

    I have multiple instances of a Sprite with the physics behavior flying around my screen.

    I just want the sprite to face the direction it is travelling in.

    I have tried setting angle of the object to Angle(0,0,Object.Physics.VelocityX,Object.Physics.velocityY) in the Every tick event. I have also tried similar with a For each Object in the Every Tick event.

    Results can be seen in the project file, seems weird to me.

    Project (just click to fire object)

    Any help or suggestions is appreciated,

    Thanks

Baked's avatar

Baked

Member since 13 Aug, 2012

None one is following Baked yet!

Trophy Case

  • 12-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies