decrease size while dragging

Get help using Construct 2

Post » Wed Feb 29, 2012 8:34 am

Hello,

I want to create an object with drag and drop behavior. like a "car" when i click on it and while dragging to the end of the street its size start to reduce more and more till it becomes very small when it reaches to the end of the street and vice versa.

Is it possible to do that?mina2012-02-29 08:38:08
B
303
S
6
G
5
Posts: 163
Reputation: 12,152

Post » Wed Feb 29, 2012 9:35 am

You probably want to play with the layerscale / layoutscale.
Those are system expression that will help you to zoom in, zoom out on the object.

Could you post a capx of what you already have setted up ?
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: 7,000
Reputation: 57,795

Post » Wed Feb 29, 2012 10:21 am

@Kyatric

Thank u Kyatric. Yes am trying to zoom the object in and out according to its position.

I'm still working on it and will post the capx when i reach something near to the idea. still didn't get and thing
B
303
S
6
G
5
Posts: 163
Reputation: 12,152

Post » Wed Feb 29, 2012 10:54 am

Some thing like THIS?
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Wed Feb 29, 2012 11:24 am

@Weishaupt

Yes, Thank u that's exactly what i want. But can i prevent dragging the car outside the road, ie: disable dragging in the sky or under the road?
B
303
S
6
G
5
Posts: 163
Reputation: 12,152

Post » Wed Feb 29, 2012 11:38 am

Just re-download the CAPX
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Wed Feb 29, 2012 12:09 pm

@Weishaupt

Thank u... I really appreciate ur help mina2012-02-29 12:09:34
B
303
S
6
G
5
Posts: 163
Reputation: 12,152

Post » Wed Feb 29, 2012 12:34 pm

No sweat
B
42
S
19
G
12
Posts: 723
Reputation: 13,911


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot], YoHoho and 13 guests