Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-23-2012, 07:42 PM   #1
asnooob
Registered User
 
Join Date: Sep 2011
Posts: 32
Default camera limits in level creator

[AS3] Hi, I´m working on a platformer. Right now I have a problem with the camera on the level creator. It works like this: the camera has the dimension of the stage and it masks the whole level. You control it with WASD to move around the level. What I want is that it cant go too far away from the level. Seems pretty simple but I cant get it to work properly, because when i modify the level edges, the camera bugs out and it escapes the level and it doesn't come back, even if you try to move it to the level direction. Any help?

Last edited by asnooob; 07-24-2012 at 01:39 AM.
asnooob is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:35 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.