Easy scale out?

Hi everyone,

I am trying to reproduce a effect like tiny wings’ scale in and out as the bird gets higher and lower. Does anyone have a easy way of doing this? I have been trying to scale the screen groups entire view but am having not luck. Does anyone have any ideas?

Thanks,
Chris [import]uid: 126017 topic_id: 28110 reply_id: 328110[/import]

check out the parallax [import]uid: 39634 topic_id: 28110 reply_id: 113593[/import]

The obvious answer is pretty straightforward: put all of your graphics and groups inside on main displayGroup, and scale this group according to your needs. What do you mean you haven’t had any luck with this? [import]uid: 70134 topic_id: 28110 reply_id: 113599[/import]

@hsardaryan
I think parallax is meant more for the scrolling background effect which I have already been able to reproduce by myself. Is there a way for it to allow scale in and out?

@thomas6
I have been trying to do this the only issue is that I have a object moving in the group that I wish the screen to follow (similar to tiny wings). When I try and scale out using a bottom left reference point the screen does not scale correctly as the reference point sometimes isn’t in the right place because the x of the screegroup is moving. Do you have any suggestions?

also I could post some code so maybe you could see what I am talking about easier if you would like? [import]uid: 126017 topic_id: 28110 reply_id: 113643[/import]

I would highly suggest using Graham Ranson’s Camera module. I am currently using that for my Archangel: FGC rewrite and it’s pretty good. It has a few issues, one that I fixed, and one I’m still waiting for a response from him, but it does have the scaling and following that you need.

http://grahamranson.co.uk/lib.php?id=5 [import]uid: 6084 topic_id: 28110 reply_id: 113659[/import]

@BeyondtheTech

Thanks i will look into this. [import]uid: 126017 topic_id: 28110 reply_id: 113661[/import]