I know how to scroll infinitely horizontally and vertically, and I can figure out how to do them at the same time, however, as soon as I throw parallax 50,50 into the mix, I can't seem to get it right.
Anybody had any luck with this?
Not sure on the way you are trying it, but there's a plugin called "sprite sheet" that offsets a tiled background, you can use that to create an infinite scrolling bg as well.
Sorry I should have clarified. I have no issues making the sprite. My problem is having that sprite loop seamlessly in all directions while scrolling in Construct 2 when using a tiled background and 50,50 parallax.
Could you explain how you have your events set up, for the way I would choose to do it Paralex wouldn't have any effect on it.
Here ya go!
Play it as it is, and it should scroll fine. Change the parallax to 50,50 and it breaks.
Also, could you try changing the default movement from bullet to 8 direction or car movement? Does that break the program for you?
Ok, gonna bump this one I'm afraid, as I am working on a very tight deadline... SORRY!!!
If anyone can help, it would be greatly appreciated!
Here's a quick demo. It's not exactly modular, but it doing essentially what you want to do.
The offset values for moving the background can be applied to enemies too.
Thanks, I ended up just setting the size to crazy high. Not sure what problem that will cause, but will give your method a go if I see some problems :)
I tried the way posted, and it appears to be overly complicated.
Might there be a simple way to set this up?
The issue here is the scrollx and scrolly
By changing the paralex of the layer scrollx and scrolly are not related to the layer anymore.
I think your setup would work if you change scrollx with (viewportleft(0)/2) and scrolly with (viewportbottom(0)/2)
the (0) behind the viewportleft determines the position on layer 0 that is in the middle of the viewport, so it should also work if the layer uses different paralex.
Might you be able to update the capx I posted with that change? I'm trying it out, but I'm not able to get it working. Eventually the tiled background just moves off like it was before.
*EDIT - Nevermind, got it working with
Thanks a lot!
Develop games in your browser. Powerful, performant & highly capable.
MY C2 downloanded from steam which is currently not the most resent release of C2. So i could not open the file.
Any it look like you solved it.