Solved: [ZoomOut when Plattformer is moving]

Get help using Construct 2

Post » Fri Nov 04, 2011 9:15 pm

Hi again. Is it possible to scale single layers?
i have done this:

Event:
Player | Platformer is moving
System | layoutscale < 1.3    

Action:
System | Set layer 0 scale to layoutscale + 0.3*dt

Event:
Player | Platformer is not moving
System | layoutscale > 0    

Action:
System | Set layer 0 scale to layoutscale - 0.3*dt

But nothing happensTastyBytes2011-11-04 21:17:06
B
14
S
2
G
6
Posts: 110
Reputation: 3,849

Post » Fri Nov 04, 2011 9:21 pm

Stay consistent.
Replace all "layoutscale" by layer 0 scale in your code.
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,999
Reputation: 57,793

Post » Fri Nov 04, 2011 9:44 pm

Do you mean?
"layer0scale" or "layer.0.scale" ? Dont know the correct syntax.
Sorry, im a noob in expressions.TastyBytes2011-11-04 21:45:14
B
14
S
2
G
6
Posts: 110
Reputation: 3,849

Post » Sat Nov 05, 2011 5:48 am

Set layer 0 scale to layerscale(0) + 0.3*dtYann2011-11-05 05:48:45
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Sat Nov 05, 2011 12:15 pm

Thank you! Now it works fine!
B
14
S
2
G
6
Posts: 110
Reputation: 3,849

Post » Mon Mar 11, 2013 7:50 am

"Genius" is just another word someone who-

a: read alot
b: read even more
c: practiced
d: experimented
3: taken lots of drugs ;p
4: you didnt notice I changed from letters to numbers did you
e: pays attention to small details
f: reads alot
g: doesnt repeat themselves often
h: relaxes and looks at the world alot(see "e:" above)
i: Doesn't worry about irrelevant things...such as trolling etc unless really, really funny...

:)

Dont worry

even lofty genius is achievable in anyone's lifetime...

just depends on how bad you want it

BE BAD..!

get studying
When in doubt..or you are lost in a Zombie apocalypse or someone is giving you a hard time..Remember one thing..... Read the Construct 2 Manual..it will save your life.:)
B
29
S
11
G
8
Posts: 313
Reputation: 7,335

Post » Sat Feb 15, 2014 1:56 am

I was wondering what I would have to do different here in order to get the camera just to zoom out as the player is walking then zoom to the original layout size when he is still.

I don't want it to zoom in at all I just want zoom out.

Great Job thought, I really like!
B
3
Posts: 2
Reputation: 186

Post » Sat Feb 15, 2014 4:05 am

I got it just had to try and understand what you were doing then I could understand how to change it fit what I needed.

I was also able to figure out how to slow down the zoom time!
B
3
Posts: 2
Reputation: 186

Post » Tue Jul 29, 2014 5:17 am

How could I make my game pause before it started scaling down?
B
8
Posts: 15
Reputation: 348

Previous

Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, BipolarMike, R0J0hound, totoe and 18 guests