infinite background

Get help using Construct 2

Post » Sat Jan 12, 2013 4:48 am

I really don't have much skills in the even sheet but i was wondering how do i make a background that keeps scrolling without me copying and pasting the background for a long time , i'm trying to make a doodle jump style game so the background has to scroll up please help???!?!?
B
6
Posts: 38
Reputation: 512

Post » Sat Jan 12, 2013 4:58 am

Please check the How do I FAQ to the section "Scrolling / Camera", you should find examples answering your question.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,786

Post » Sat Jan 12, 2013 4:59 am

First I would go through the tutorials about paralax, etc... you can set a tiled background and give it movement as well... that should get you on the right path...
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,413

Post » Sat Jan 12, 2013 5:09 am

I use infinite scrolling backgrounds all the time! :D

What I typically do is take a TiledBackground object and stretch to about 2 or 3 times the size of the screen.

Then I create some events that tell it to move at a certain speed (Set Background.Y to Self.Y * <Speed> * dt).

If it goes past a certain point (like 512 pixels away from its starting point) then it moves the BackGround object back to its starting point (If Background.Y is greater than <Background's starting y position + 512>, set y to its original position)

That's what I usually use! Hopefully, this will help!Zero62013-01-12 05:10:20
B
13
S
4
Posts: 117
Reputation: 2,242

Post » Sat Jan 12, 2013 4:44 pm

Hello Zero6, does that lead to a visible jump or stutter in the background scrolling when you set it that way?
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,413

Post » Sat Jan 12, 2013 5:47 pm

I found a way of doing it in the "How do I section" (I think that's where I found it). It uses a couple of global variables. You can see if this capx might help....Vertical Scrolling Background
B
20
S
2
Posts: 257
Reputation: 2,431

Post » Wed May 29, 2013 11:55 am

hi.. I need help desperately. I'm currently very new at game making.. I want to make an infinite jump like doodle jump too.. but the How do I faq doesn't seem to solve my problems.. I currently have 2 problems

1st my high score box won't go with the sprite, 2nd, the background also won't go with the sprite as the sprite moves higher.. how do I make GUI for Infinite VERTICAL scrolling? tried to do it with the infinite jumping template..
If you guys are wondering about my capx, here it is..
http://www.mediafire.com/?td7v2r589q8iwr5
B
2
Posts: 6
Reputation: 162

Post » Wed May 29, 2013 12:48 pm

@archerguild

Not sure about 2nd however 1st (high score) you just set it to scroll with your sprite/player.

I may not be the right person to say this.. but to get more attention on your issue, you could have made your own thread
B
19
S
7
G
4
Posts: 322
Reputation: 4,481

Post » Wed May 29, 2013 1:27 pm

Hi Sulli! thanks for the fast reply! I managed to do it with with pin behavior! Yeah.. now my background and my high score pinned to my Char like GUI!
Thanks for your info.. but I think scroll to doesn't have the option to scroll with the player lol.. at first I was confused because there is only shake option in the scroll to behavior.
Now I can move on to my next objective!(which is power ups and obstacles) :)
B
2
Posts: 6
Reputation: 162

Post » Wed May 29, 2013 4:05 pm

@archerguild

Cool! PM me (click on my name) if you need help testing anything! Sound good.

Also if you reply use the ' @Sulli ' thing otherwise i dont get a notification.. just by chance I saw your reply
B
19
S
7
G
4
Posts: 322
Reputation: 4,481

Next

Return to How do I....?

Who is online

Users browsing this forum: Draconinho, LeFuji, totoe and 10 guests