Mirror pinned objects

0 favourites
  • 4 posts
From the Asset Store
Welcome! I-Spy (Hidden objects) is an educational puzzle that is more than just seek-and-find activities.
  • Hi, I'm new to Construct 2 but I have read a lot of tutorials and so on and didn't find this, probably a noob question.

    I have a "Player" invisible object and then a "sword" invisible object and the sprite of the character, both pinned to "Player". "Player" and "sword" are like hitboxes. It works ok until I mirror the sprite, then "Player" and "sword" dont rotate.

    Also Player spawn proyectils from right edge always, mirrowed or not.

    How can I fix that? Thanks :)

  • Add an event that tells your sword and player object to mirror when the sprite is mirrored and it should work. The pin positions should mirror with the invisible object, and the sword should be in the right position.

    I'll need more info if you want help with the projectiles, what are the actions and conditions of that event?

  • It works! Thank you!

    About projectiles...

    • On S pressed spawn proyectil

    and

    • When Player is mirrored, set angle of projectil to 180? (which seems bad at all, I just realised that the projectil change its direction while fly if I turn left)
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No problem, welcome to Scirra and C2. <img src="smileys/smiley20.gif" border="0" align="middle" />

    You might not need the set angle event if you spawn the projectile from "Player: Spawn another object" instead of "System: Create object".

    If you do though, how about setting the angle to the players angle when the projectile is spawned, like this:

    On S pressed:
    -> Player: Spawn Projectile on layer X
    -> Projectile: Set angle to Player.Angle
    
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)