I have a problem with parallax alignment.

  • I have a problem with parallax alignment.

    if I move player to the right target works fine. but if you move left a misalignment occurs.

    layer 0 - enemy0 - (parallax 100,100)

    Layer 1 - enemy1 - (40.40 parallax)

    camada2 - enemy2 - (15.15 parallax)

    camada3 - player, target, bullet - (parallax 0.0)

    Demo:

    primercontrol.com.br/game1/html5

    Capx:

    primercontrol.com.br/game1/estudo-paralax.rar

    I've tried changing the layer of bullet but the misalignment imagepoint player.

    <img src="smileys/smiley19.gif" border="0" align="middle" />

    PORT:

    tenho um problema com alinhamento parallax.

    se eu mover o jogador para direita minha mira funciona OK. mas se mover para esquerda acontece um desalinhamento.

    camada 0 - enemy0 - (parallax 100,100)

    camada 1 - enemy1 - (parallax 40,40)

    camada2 - enemy2 - (parallax 15,15)

    camada3 - player , mira, bullet - (parallax 0,0)

    J? tentei trocar a camada do bullet mas desalinha o imagepoint do player.

    Obrigado

    Thx

    Davis

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hmm, i dont see any problem of misalignment, the bullet is always right on target, tested in chrome,

  • but cant rotate the target on colision.

    bullet on colision rotate. movo to right and see...so, move to left and see bullet follow target fine, but not rotate.

    Shoot around and see target rotate while bullet is on ghost target.

    i tested in chrome every.

  • Which version of Construct 2 are you using? We made a bug fix to do with parallax alignment recently.

  • the latest

    r.95 64 bit on a Win7

    r.95 32 bit on a win XP

    booth have same problem.

    i wrong programming file .capx ?

    thx

  • any help?

  • Mmm kinda tricky. SPL1 is at 171,192. When you move, it's position stays the same but it appears to move because of the parallax effect. If you move to the right then SPL1 appears to be at, say, 250,192 but to hit it you still need to shoot at 171,192.

    So... I created some dummy targets on layer 3 and set their positions to the target's positions taking the parallax into account.

    capx

  • I'm afraid it's a known bug, collisions don't currently take in to account parallax. So you'll need to find a way to work with all the objects on the same layer for the time being.

  • everything seems to be working for me, google chrome

  • Works Form me.

    Very helpfull for me.

    Thanks all for help.

  • so i was trying to make a health bar, and i saw that if you set the parallax onto 0,0 of a layer it should keep in the screen, but since i tried it, it just dissapear when i test it.

    does someone know why thins happends and how to fix it?

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