The Daily Click ::. Forums ::. Klik Coding Help ::. Resizing window with custom shapes for each frame
 

Post Reply  Post Oekaki 
 

Posted By Message

norfair



Registered
  31/10/2002
Points
  244
9th July, 2005 at 10:54:45 -

Greetings

I would change the window size of a scrolling game with different custom settings for each frame (different places)

I used the Window Object , resizing the client area of a frame of an application maximized on boot-up, and all other global display proprieties set off

the window object set a different client size, but make disappear all the black border around the window shape wich I want to keep visible, and moreover the extension puts the window in the high-left corner of the screen, wich sucks.

link - http://faindfiles.com/MM/screensize.cca

(remove the event to see the window in centre of screen and with the border)

How I can change the size without make the border disappear and without change the position of the window?


(this is the last question for today, and maybe for next months)

Image Edited by the Author.

 
Radix says:
It's regrettable that TDC is the arsehole of the click scene, but somewhere has to be.

a1018



Registered
  08/02/2005
Points
  131
9th July, 2005 at 11:57:01 -

is this that you meant??
Url : http://s7.yousendit.com/d.aspx?id=397ZJ3IMZ2GQ50CLW49H5KW8VW

 


norfair



Registered
  31/10/2002
Points
  244
10th July, 2005 at 11:00:16 -

er.. not really.

Your scrolling would be ok but set the same window setting for all the game (always the same window size)

I mean literally change the window shape (in X/Y sizes) trough code, different times and with different sizes, without losing the border and without the window in the corner.

thanks anyway.

I update my example with right and explicit questions (see comments in the code)

http://faindfiles.com/MM/screensize.cca


Image Edited by the Author.

 
Radix says:
It's regrettable that TDC is the arsehole of the click scene, but somewhere has to be.

norfair



Registered
  31/10/2002
Points
  244
10th July, 2005 at 14:55:23 -

Does somone thinks that's impossible?

 
Radix says:
It's regrettable that TDC is the arsehole of the click scene, but somewhere has to be.

a1018



Registered
  08/02/2005
Points
  131
10th July, 2005 at 15:10:36 -

It is possible.Just i am tryin...Wait a minute

 


a1018



Registered
  08/02/2005
Points
  131
10th July, 2005 at 16:14:38 -

Space&backspace to change size
here it is : http://www.geocities.com/abuproplus/clientsize.zip

You must give +320 size to level width
&&+240 size to level height
Your levels new origin must be 160,120 for scrolling.

PLus you must limit scrollin..
Use this(
scroolx = min(max(xposofanobj,160+320),levelswidth-160-320)
scrooly = min(max(yposofanobj,160+240),levelsheight-160-240)
)

 


norfair



Registered
  31/10/2002
Points
  244
10th July, 2005 at 18:04:22 -

awesome!!!

You are now the man.


ah, I cant download globalfunction.cox - wherever I find that the link is broken

can you upload it?

thanks

 
Radix says:
It's regrettable that TDC is the arsehole of the click scene, but somewhere has to be.

norfair



Registered
  31/10/2002
Points
  244
11th July, 2005 at 11:59:37 -

I will love apu

 
Radix says:
It's regrettable that TDC is the arsehole of the click scene, but somewhere has to be.

norfair



Registered
  31/10/2002
Points
  244
11th July, 2005 at 19:07:55 -

first, in the the backward.

 
Radix says:
It's regrettable that TDC is the arsehole of the click scene, but somewhere has to be.

norfair



Registered
  31/10/2002
Points
  244
12th July, 2005 at 07:19:16 -

Not anymore.

I got the file.

Image Edited by the Author.

 
Radix says:
It's regrettable that TDC is the arsehole of the click scene, but somewhere has to be.

Wicked Studios



Registered
  25/10/2004
Points
  460
12th July, 2005 at 12:49:17 -

I too may love Apu, but only for his frisky ponies in the backyard stable. Ahhh...frisky ponies.

 
"Actually sir, we found a tiny unicorn in your exhaust. It was jumping around poking holes in your gas tank." "Oh thank you I did not know that. A tiny unicorn? Wow."

norfair



Registered
  31/10/2002
Points
  244
22nd July, 2005 at 17:45:13 -

ah!!

but sub-applications needs cca files!

How I can protect cca files with MMF or make it work with exes?

 
Radix says:
It's regrettable that TDC is the arsehole of the click scene, but somewhere has to be.

Johan Hargne (Wartagon)

Lover Of Circys

Registered
  15/06/2003
Points
  1289

Game of the Week WinnerCROBASOFTVIP MemberPS3 OwnerWii OwnerMushroom
22nd July, 2005 at 19:01:03 -

Apu is nice, but not Abu.

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

Crobasoft
www.crobasoft.com

norfair



Registered
  31/10/2002
Points
  244
23rd July, 2005 at 13:11:00 -

Frisky ponies for everybody.


what about protecting cca files ??

 
Radix says:
It's regrettable that TDC is the arsehole of the click scene, but somewhere has to be.
   

Post Reply



 



Advertisement

Worth A Click