[how do i]position preview

Get help using Construct 2

Post » Sat Jul 06, 2013 2:09 pm



how do i create like that ... i've create player with scroll to .. and i want some simulation that view player position ...


bhentz2013-07-07 06:37:59
B
12
S
2
G
2
Posts: 54
Reputation: 2,144

Post » Sun Jul 07, 2013 6:37 am

help me please ...
B
12
S
2
G
2
Posts: 54
Reputation: 2,144

Post » Sun Jul 07, 2013 7:10 am

your HUD an previewer has to be on a layer with a parralax of 0, 0

Manual: Layers

so, it will not move with the scrolling

then, the preview vehicle Y position should be set to something like (Player.Y/Scaling_constant+Other_contant ), replace player by the name of your player sprite, for Scaling_constant, and Other constant, I cant really tell, I depends on multiple things...

Scaling constant is how many pixels your player should travel on the Y axis to make the preview vehicle move one pixel on the Y axis, and the Other constant is the position Y of the preview vehicle when you are at an Y of 0 yourself.

Sorry, I can't do that much, maybe someone can help you more
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Sun Jul 07, 2013 8:19 am

i know that ... what i want to know how to create event for simulation the position of car ?? at that parallax ?? @Aphrodite maybe you can give an example by capx ??bhentz2013-07-07 08:21:04
B
12
S
2
G
2
Posts: 54
Reputation: 2,144

Post » Sun Jul 07, 2013 10:30 am

I tried a little something, not exactly precise, but I think you will get the point:

Preview car

There is 2 layers, one for the HUD and preview, and the other one for the game itself

The game will calculate everything at the beginning of the layout, so, no need to do manual calculs beforehand
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Sun Jul 07, 2013 5:30 pm

thank you @Aphrodite . it's really simple than i tought ..
B
12
S
2
G
2
Posts: 54
Reputation: 2,144


Return to How do I....?

Who is online

Users browsing this forum: farsen, gskunk, Kyu, R0J0hound and 56 guests