How do I stop layer scrolling?

Get help using Construct 2

Post » Mon Nov 16, 2015 6:02 pm

Hi

im testing the demo in construct 2 of infinite jump (vertical)

i created another layer for the background, how to tell to that layer to not scroll???
B
37
S
15
G
7
Posts: 1,681
Reputation: 9,614

Post » Mon Nov 16, 2015 6:04 pm

In the layer properties there are settings for X and Y parallax. Set both to zero

This is also fantastic for front-most layers for you to set up your HUD (UI) on.

cheers.
-Mike
B
49
S
9
G
4
Posts: 426
Reputation: 7,041

Post » Mon Nov 16, 2015 6:19 pm

Thanks :D if you open that example in construct 2 the infinite vertical jump, do you know where is the option in the events to say the distance between each platforms vertically?

actually i have too much spaces between my platforms and its hard to jump on it
B
37
S
15
G
7
Posts: 1,681
Reputation: 9,614

Post » Mon Nov 16, 2015 6:36 pm

Since the distances are not too big in the original, you must have made changes..
One of these changes caused the distances to become too big..

Is there anything you changed that you didn't understand what it was for?
That might be the place you should look..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Nov 16, 2015 7:02 pm

I just try to understand the logic, what i need is just to create platforms at random heights, and horizontals, but i cant find a solution for making the paltforms not too far one from another

i have this:

system create object "platform" on layer "game" X random(20, LayoutWidth - 400), Y ViewportTop("Game")
system set nextplatform to ViewportTop("Game") - random(20, 400)

this is what i have

http://s10.postimg.org/kjbqfua09/spawn.jpg
B
37
S
15
G
7
Posts: 1,681
Reputation: 9,614

Post » Mon Nov 16, 2015 7:21 pm

Looks perfect!

How often are you creating these platforms?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Nov 16, 2015 7:32 pm

my game is for android i changed the layout size of the project to 480 width, 800 height, and here is the code
Image
B
37
S
15
G
7
Posts: 1,681
Reputation: 9,614

Post » Mon Nov 16, 2015 7:54 pm

As you can see, the next platform is created when the variable Nextplatform is bigger than the y-postion of the viewporttop and the players y-position is less than The Minscroll variable..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Nov 16, 2015 8:11 pm

well it not solve my problem

this is what i get, but of course is random so its not allways the same, BUT it varies so much, some times platforms are impossible to reach too high...
and what i want is not the platforms to be created to hight OR to close from another platform, like in this picture.

Image
B
37
S
15
G
7
Posts: 1,681
Reputation: 9,614

Post » Mon Nov 16, 2015 8:26 pm

Changing one of the things that define when your objects are created and where, should solve your issue..

Try to understand the events and actions..
What is happening when and why?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Next

Return to How do I....?

Who is online

Users browsing this forum: bclikesyou, blackhornet, brunopalermo, mekonbekon and 21 guests