The Daily Click ::. Forums ::. Klik Coding Help ::. resolution
 

Post Reply  Post Oekaki 
 

Posted By Message

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
2nd September, 2009 at 19:35:20 -

I have realised that changing resolution with just using resize display to fill window size works pretty okay, for different resoulitions... but the problem is that a lot of objects doesnt move to their new locations. Like active box object, list object, and some others. And since i made my whole game buttons with active boxes and i have a lot of lists.
Could i somehow change it withoout changing every active box into active and stuff like that.

 
Code me a sausage!

Jon Lambert

Administrator
Vaporware Master

Registered
  19/12/2004
Points
  8235

VIP MemberWii OwnerTDC Chat Super UserI am an April FoolSSBB 3265-4741-0937ACCF 3051-1173-8012360 Owner
2nd September, 2009 at 21:29:23 -

It is very simple for most interface objects. You just need to set the size and/or position relative to the frame window size using expressions from the Window Control object. Gwerdy Chat does it, and TDC Chat does it.

Set X Size to FrameWinXSize("Window Control")/4 will make it one-fourth the screen width.
Set X Position to FrameWinXSize-(FrameWinXSize("Window Control")/4) will always place it adjacent to the right side of the screen.

Likewise for Y.

 
Sandwich Time!Whoo!

JoyCheck & KeyCheck Widgets
For easy implementation of customizable joystick and keyboard controls.
http://www.create-games.com/download.asp?id=8364

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
3rd September, 2009 at 11:19:43 -

Thanks dude, you saved me a lot work.


EH... one more question, the problem is that the calculation doesnt use numbers like 0.6435 it rounds them up. to 1,2,3.
How would i make to use the decimals.

Nevermind... i found out.

Edited by Don Luciano

 
Code me a sausage!
   

Post Reply



 



Advertisement

Worth A Click