scrolling up with walls(solid sprite)

Get help using Construct 2

Post » Sun May 12, 2013 9:43 am

hi,

how can I made a wall(solid) that is constant in its place or like in infinite parallax?

(parallax ex. 100, 50)
as my character goes up, the wall is works fine at first, but after a several scrolls, the walls were left behind and nonfunctional and my character goes out of layout.

(parallax ex. 100, 0)
as my character goes up, the wall is works fine at first, but after a several scrolls, the walls were still there or works right but my character passes through the wall and goes out of layout.

can anyone help a newbie like me?
thanks in advance.
B
3
Posts: 15
Reputation: 305

Post » Sun May 12, 2013 1:20 pm

Could you please elaborate further? I'm not sure if I understand your real intention correctly.
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
23
S
9
G
11
Posts: 408
Reputation: 8,015

Post » Sun May 12, 2013 2:51 pm

something like infinite walls in left and right that parallax can be applied as my character goes up(because it jumps automatically).
B
3
Posts: 15
Reputation: 305

Post » Sun May 12, 2013 3:31 pm

Use graphical trick. Have invisible solid sprites stay still for solid check. Have a tiled background for your infinite wall rendering.

In every tick, check if your tiled background exceeds its looping size. If so, move it back. For example, if your tile is 128 x 128, and the size of the tile is 128 x 800, check if y of the tile > 128. If so, move y back by 128 - the height of your tile, in other word. This will give the player the impression that the tile is moving.

Of course, the player will have to be push down with the same speed as the wall that is pulling down to have the same impression.

Does this answer your question?
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
23
S
9
G
11
Posts: 408
Reputation: 8,015

Post » Sun May 12, 2013 3:36 pm

sorry for typing too fast. But for the effect above, the size of the tile must exceed the total view from top to bottom in order to achieve this effect. The y position of the tile should be above the top of the view by the looping height. Get what I mean?
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
23
S
9
G
11
Posts: 408
Reputation: 8,015

Post » Mon May 13, 2013 3:21 am

oh I'm sorry forgot to mention. is possible that I should make it a sprite instead of tiled background?

but it gives me the idea though.
B
3
Posts: 15
Reputation: 305

Post » Mon May 13, 2013 7:04 am

Of course. If you design your event that way, sure.
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
23
S
9
G
11
Posts: 408
Reputation: 8,015

Post » Mon May 13, 2013 7:09 am

ok thank you very much.
B
3
Posts: 15
Reputation: 305


Return to How do I....?

Who is online

Users browsing this forum: Artpunk and 18 guests