Be a Supporter!

Controlling camera AS3...

  • 161 Views
  • 2 Replies
New Topic Respond to this Topic
Hero101
Hero101
  • Member since: Dec. 13, 2005
  • Offline.
Forum Stats
Supporter
Level 22
Game Developer
Controlling camera AS3... 2013-11-14 23:44:48 Reply

I was wondering in a flash game with parallax scrolling is there a way to choose how zoomed in or zoomed out the player's view is of the character they are playing with. Like is it just a matter of increasing or shrinking the boundary box around the character.

Is there a way to attach a Vcam to the Player?

Obviously I'm still really new at this and need more practice and tests with parallax scrolling. I'm just having a hard time figuring out what exactly decides the locked level of distance of the player's view is on their character.

Hopefully this made sense....


BBS Signature
MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Online!
Forum Stats
Supporter
Level 16
Game Developer
Response to Controlling camera AS3... 2013-11-15 00:06:08 Reply

At 11/14/13 11:44 PM, Hero101 wrote: Hopefully this made sense....

Change the scaleX and scaleY properties of displayobject. If you want to zoom everything in or out, change the properties of the container. You might have to readjust the container depending on where the regis point is.

Don't do vcams in coding, they mess with collisions or something.

Hero101
Hero101
  • Member since: Dec. 13, 2005
  • Offline.
Forum Stats
Supporter
Level 22
Game Developer
Response to Controlling camera AS3... 2013-11-15 00:26:28 Reply

Change the scaleX and scaleY properties of displayobject. If you want to zoom everything in or out, change the properties of the container. You might have to readjust the container depending on where the regis point is.

Don't do vcams in coding, they mess with collisions or something.

Thanks again for your help dude :)


BBS Signature