Mirroring to an object possible?

0 favourites
From the Asset Store
This is a single chapter from the "Construct Starter Kit Collection". It is the Student Workbook for its Workshop.
  • I am currently working on a game with some friends for the lulz.

    Now I am stuck on a point where the character wont turn.

    We are not using the platform behavior because its not what we want to use for this game.

    Now the problem is hard to explain but you can see in this video.

    youtube.com/watch

    at 1:00 he starts walking backwards, I need to get him mirrored.

    the way he moves right now is that he accelerates to the item that spawns, the item always spawns on the same hight where-ever you click, now the only thing I need is the guy turning to left and back to right, I've tried alot but I don't seem to be able to get it fixed.

    Kind regards,

    Jan.

  • Bump

  • Try setting the width of the character to a negative number. So if the width is 100, set the width to -100.

  • Or set it to mirrored? 0.0

  • Try setting the width of the character to a negative number. So if the width is 100, set the width to -100.

    If I do so the character is unable to turn right.

    Or set it to mirrored? 0.0

    Unfortuonately I've tried this multiple times already :/

  • Posting a .capx will be easiest

  • Here, have a go.

    uppit.com/ekiw2xmm61w3/RS2D.capx

  • I still haven't done it, therefor another bump. :/

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When you click to the left of the player, set the player mirrored. When you click to the right, set not mirrored.

  • When you click to the left of the player, set the player mirrored. When you click to the right, set not mirrored.

    Where can I find this? I've been searching for that my whole evening.

  • I haven't downloaded the capx so I'm going by what I see in comments

    • On Left Button Clicked
    • Mouse.X < Sprite.X
    • > Set Sprite mirrored (look in the speites actions to find this.)

    -On Left Button Clicked

    • Mouse.X > Sprite.X
    • > Set Sprite not-mirrored
  • I haven't downloaded the capx so I'm going by what I see in comments

    - On Left Button Clicked

    - Mouse.X < Sprite.X

    -> Set Sprite mirrored (look in the speites actions to find this.)

    -On Left Button Clicked

    - Mouse.X > Sprite.X

    -> Set Sprite not-mirrored

    I?m sorry, I?ve tried but I have no idea what you?re trying to tell me here.

    bump

  • 1. Add Mouse behavior to game

    2. Create a new event by double clicking in the event sheet

    3. Double click mouse and selecet "On Click" with the green arrow

    4. Choose which settings you want

    5. Right click your new event and select add new trigger or something like that

    6. Double click the sprite in this GUI and find "Compare X"

    7. Choose Less Than, and then do Mouse.X

    8. To the right of your event there should be some small grey text that says somethin all the lines of add new event with a plus sign

    9. In this GUI, select your sprite and find "Set mirrored" choose not mirrored

    10. Repeat this with a NEW event (right click > Add new event) but change less than to greather than, and change not mirrored to mirrored

    Let me know if anything here is wrong, just woke up and am going off tentop of my head.

  • Or do that. Thats cool too.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)