How do I figure out the value

Get help using Construct 2

Post » Sat Sep 13, 2014 3:06 am

Hi im new at CS2, recently i've been learning how to make flappy bird (tutorial and templates in CS2). Im doing it in 4:3 ratio portrait (480x640). I cant figure out the X and Y value for the parameter for system: create object for my top and bottom pipe. I have try lots of different values but it doesnt turn out right. Is there a method or a way to figure out the value.
B
5
Posts: 19
Reputation: 257

Post » Tue Sep 16, 2014 7:49 am

// MOVE
every tick, -> PipeTop -> Set X -> Self.X-5. PipeBottom -> Set X -> Self.X-5

// CREATE
every 1 seconds ->
System -> Create object -> PipeTop
X = 400, Y = random(100,-100)
System -> Create object -> PipeBottom
X = 400, Y = PipeTop.Y+500
"If you want to move a mountain tomorrow, you should start by lifting stones today."
B
62
S
14
G
2
Posts: 290
Reputation: 6,614

Post » Tue Sep 16, 2014 8:12 am

@bobvu

Usually a .capx file helps to understand better your request :)

Anyhow, to get the x/y value for an object, you use Object.x/Object.y :)
I'm not a insane, my mother had me tested

I'm an engineer. To save time, just assume I'm never wrong
B
30
S
13
G
4
Posts: 141
Reputation: 4,832

Post » Thu Sep 18, 2014 9:04 am

Thanks a lot!!!
B
5
Posts: 19
Reputation: 257


Return to How do I....?

Who is online

Users browsing this forum: charliesan763, JaredX and 10 guests