Can a turret shoot to a 0,0 paralax layer ?

0 favourites
  • 6 posts
From the Asset Store
A shoot template with ragdoll effect and enemy see you.
  • Very hard question. Maybe somebody has a solution. I have a player ship on top layer with paralax 0,0. I have a scroller sprite to make the screen scroll horizontally. since my ship is on paralx 0,0 it can fly in all the screen arround and in the same time the entire environment is side scrolling. I have a turret. But it is not shooting on the ship since it seems for the turret that the ship is very far away for the paralx 0,0. If i put a super big number in RANGE, it shoots...but NOt on the ship.... is there a solution ?

  • Easier solution is to have the ship on the base layer and move it at the same speed as the scroller, like simply every tick set its X position to X + DT*16 and do the same for the scroller. That way you can still move it all over, but if there's no input it flies forward.

  • Hi thanks a lot for you help, could you add a capx file please ? it's 2 days that i am glued to my pc without results...maybe U saved me

  • please can U post a sample file ? thanks a lot

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There you go - ship is on the same layer as the turrets, you still have full freedom of movement, it just moves forward with the scrolling.

  • Thanks a lot that was amazing. Only if u should have time. Could U show me also the same sample with canvastolayer and layertocanvas ? somebody told me that it is also a solution. but as new commer i did understand...zero of all that.

    THANKS SO SO MUCH ! very helpful !

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