The Daily Click ::. Forums ::. Klik Coding Help ::. Centering the Sub-Application
 

Post Reply  Post Oekaki 
 

Posted By Message

Johan Hargne (Wartagon)

Lover Of Circys

Registered
  15/06/2003
Points
  1289

Game of the Week WinnerCROBASOFTVIP MemberPS3 OwnerWii OwnerMushroom
5th March, 2005 at 07:25:30 -

Yeah. I'm doin something where I have a sub-application popping up when pressing a certain key. The problem is that the sub-application object does not want to scroll along with the playfield, it keeps following the player that the screen is centered on. I want it to always stick to the upper left corner in the visible playarea. I've tried the many ways I know of and I wonder if there's anyone knowing what the problem might be.

 
Music Composer.
http://johan.hargne.se

Crobasoft
www.crobasoft.com

DistantJ [FZ Games]



Registered
  02/08/2004
Points
  855
12th March, 2005 at 07:43:05 -

You might want to have those actions in an "Always" event, rather than in "Xpos <> X left Frame". And try to have it in the same event as the event when the camera is centred. That way as soon as the camera is moved, so is the subapp so it stays in sync. If using the method Phizzy mentioned there it'd work but it'd appear to judder a little when scrolling. The same can happen if using a different event to that where the camera is moved.

 
http://www.fzgames.com
   

Post Reply



 



Advertisement

Worth A Click