Hi i would like to create this effect with construct 2
The moving layers when you move the mouse
But i dont know how to achieve that
You can put main sprite on layer with parallax like 5,5 and its shadow on another layer with parallax 10,10 and scroll to mouse position. (or opposite to mouse position)
Unfortunately, you can't skew or add perspective to a sprite in C2 without some external addons.
Here are a couple of links:
https://www.scirra.com/store/royalty-fr ... usion-1636
Develop games in your browser. Powerful, performant & highly capable.
I dont need a complex demo with fake 3d.
i saw this old demo this is the kind of effect i'm looking for but is no explanation about the sprite (Mouse.X+Sprit02.X)/2, (Mouse.y+Sprit02.y)/2 something is missing in that video.
The video shows simple parallax based on mouse. It is very basic. Have you tried?
Make a prototype based on the video and then if you have issues, post .capx here so we can help.
Ok solved i just removed the sprite my mouse was following !
But ONE IMPORTANT INFO is missing you need to have a sprite CENTERED in your layout !!!
that's why the formula is: (Mouse.X+Sprit02.X)/2 (Mouse.y+Sprit02.y)/2