Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (ozgur, degenerate_762, 7th_zorro), 1,075 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: Panel Fading Problems [Re: badapple] #213206
06/26/08 11:08
06/26/08 11:08
Joined: Apr 2007
Posts: 582
Germany
Poison Offline
User
Poison  Offline
User

Joined: Apr 2007
Posts: 582
Germany
btw, xbox why have you posted it twice?


Everything is possible, just Do it!
Re: Panel Fading Problems [Re: Poison] #213264
06/26/08 17:07
06/26/08 17:07
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline OP
Senior Member
xbox  Offline OP
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
@Poison: Because my "Reply" and "Edit" button won't work. When i click Reply, it shows everything but the box to type the message. When i hit edit, it does the same thing. But when i posted my first response, i was using "Quick Reply" and forgot to unclick "Add Signature" so i clicked back on my browser which, took the post away then i unclicked the box and hit submit again and there were two posts.

Re: Panel Fading Problems [Re: xbox] #213294
06/26/08 20:43
06/26/08 20:43
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
i gues the background isnt refreshd so u need to load a lvl ore use vec_set(screen_color,vector(8,8,8));


"empty"
Re: Panel Fading Problems [Re: badapple] #213337
06/27/08 06:17
06/27/08 06:17
Joined: Jun 2008
Posts: 19
H
halfpint Offline
Newbie
halfpint  Offline
Newbie
H

Joined: Jun 2008
Posts: 19
I got this to work

Code:
var video_mode = 7;
var fade_speed = 10;

bmap background = "background.bmp";//back panel
bmap background1 = "background1.bmp";//above panel
bmap start_norm = "start_norm.bmp";
bmap start_roll = "start_roll.bmp";
bmap mouse = "mouse.bmp";//mouse picture

function main()
{
	wait (3);
	mouse_map = mouse;
	mouse_mode = 3;
	while(1)
	{
		mouse_pos.x = pointer.x;
		mouse_pos.y = pointer.y;
		wait(1);
	}
}

panel background_1//starting background picture
{
	bmap = background;
	layer = 1;
	button ( 300, 300, start_roll, start_norm, start_roll, fadein,NULL,NULL);
	flags = VISIBLE;
}

panel background_2
{
	bmap = background1;
	layer = 2;
	button ( 300, 200, start_roll, start_norm, start_roll, fadeout,NULL,NULL);
	alpha = 0;//starts at 0 alpha
	flags = TRANSLUCENT;//translucent allows the alpha to work
}

function fadein
{
	background_2.visible = ON;
	while ( background_2.alpha < 100)
	{
		background_2.alpha += 10*time;//if alpha is not at 100 increase it
		wait(1);
	}
}

function fadeout
{
	while ( background_2.alpha > 0)
	{
		background_2.alpha -= 10*time;//if alpha is not 0 decrease it
		wait(1);
	}
	background_2.visible = OFF;//make sure to turn off the top panel otherwise the
										//bottom panels button wont work
}


Hope this helps.

Re: Panel Fading Problems [Re: halfpint] #213412
06/27/08 16:39
06/27/08 16:39
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline OP
Senior Member
xbox  Offline OP
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
OMG, it still doesn't work!!!!!!!!! WTF.

Since i can't make new forums, (because my browser is being retarded) i need to ask something else. Is it possible, and if so, How, to load different parts of a huge level at certain times with out taking certain parts away. I know if you make a script so when you hit a block it start up the next level and closes out of the level you are on, but i need it to load parts of the levels, preferibly wmb's and close out of others.

Thanks for all of the Help too.

Re: Panel Fading Problems [Re: xbox] #213438
06/27/08 21:50
06/27/08 21:50
Joined: Jun 2008
Posts: 19
H
halfpint Offline
Newbie
halfpint  Offline
Newbie
H

Joined: Jun 2008
Posts: 19
how does it not work?
are you getting an error?
does the panel not show at all?
do the panels switch but dont fade?
just screaming OMG IT DOESNT WORK doesnt really help anyone who might be trying to help you.

Re: Panel Fading Problems [Re: halfpint] #213450
06/28/08 01:52
06/28/08 01:52
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline OP
Senior Member
xbox  Offline OP
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
@halfpint: completley sorry for not specifying. I was in a rush and forgot to. But, with the script you gave me, the panels switch, but they dont fade. Don't know if it makes a difference or not but i am using A6 Pro. Like i said before, i have played with the alpha values before, but no matter what the value is set at, if the flag visible is set, it is 100% visible.

Once again, seriously sorry.

Re: Panel Fading Problems [Re: xbox] #213664
06/29/08 22:16
06/29/08 22:16
Joined: Oct 2004
Posts: 1,655
T
testDummy Offline
Serious User
testDummy  Offline
Serious User
T

Joined: Oct 2004
Posts: 1,655
The 'solution' was probably found in the snippet offered by user JazzDude, or in product 'version-conflicts'.
Arr.

Re: Panel Fading Problems [Re: testDummy] #213676
06/30/08 01:11
06/30/08 01:11
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline OP
Senior Member
xbox  Offline OP
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
can you give me a link to the snippet or tell me where it is?

Re: Panel Fading Problems [Re: xbox] #213678
06/30/08 01:22
06/30/08 01:22
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
well here is my example... it works but the code could be optimized a little.

here> http://www.djbm.kawanda.net/fade_test.zip

Page 2 of 3 1 2 3

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1