Gamestudio Links
Zorro Links
Newest Posts
freewhyblogelsewhere
by 9489cpjf. 06/03/24 06:06
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,301 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19056 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Sky00.wdl #144430
07/30/07 11:49
07/30/07 11:49
Joined: Mar 2006
Posts: 724
the Netherlands
Frits Offline OP
User
Frits  Offline OP
User

Joined: Mar 2006
Posts: 724
the Netherlands
I'm trying out this template (day/night animated sky).
Accoding to the manual;
Actions: none
Needs: none
When I run the level the top of the skybox shows clouds and the four sides and the bottom are plain blue, and nothing happens.
I looked in the file and there is a var duration and always zero.
Does this var not has to have a value?
And if so, where can I fill this in or do I have to declare this var;
var duration = 10; or something like that.

EDIT: The four sides show mountains, only the color above the mountains is different than the skycolor.

Last edited by Frits; 07/30/07 13:09.

I like to keep scripting simple, life is hard enough as it is.
Regards,
Frits
Re: Sky00.wdl [Re: Frits] #144431
07/31/07 05:38
07/31/07 05:38
Joined: Jul 2000
Posts: 8,973
Bay Area
Doug Offline
Senior Expert
Doug  Offline
Senior Expert

Joined: Jul 2000
Posts: 8,973
Bay Area
Code:

// Desc: transition from daytime (sky01) to nighttime (sky00) in the time
// given by duration.
function Sky00_Day_To_Night(duration)



You need to call this function.


Conitec's Free Resources:
User Magazine || Docs and Tutorials || WIKI
Re: Sky00.wdl [Re: Doug] #144432
07/31/07 07:21
07/31/07 07:21
Joined: Mar 2006
Posts: 724
the Netherlands
Frits Offline OP
User
Frits  Offline OP
User

Joined: Mar 2006
Posts: 724
the Netherlands
Thanks Doug, that make sense, I must have overlooked that.
But what unit is this duration, hours, minutes?

I made a screenshot how the sky looks, that can't be good.


Shot at 2007-07-31


Last edited by Frits; 07/31/07 09:16.

I like to keep scripting simple, life is hard enough as it is.
Regards,
Frits
Re: Sky00.wdl [Re: Frits] #144433
08/02/07 03:41
08/02/07 03:41
Joined: Jul 2000
Posts: 8,973
Bay Area
Doug Offline
Senior Expert
Doug  Offline
Senior Expert

Joined: Jul 2000
Posts: 8,973
Bay Area
Time is in ticks (1/16 of a second).

And, yes, that is how a sky looked in the A5/early-A6 days.
You can make it look better, but it requires artwork.
You need to put some ground in there or lower the sky. Also, use better background image (or remove it).


Conitec's Free Resources:
User Magazine || Docs and Tutorials || WIKI
Re: Sky00.wdl [Re: Doug] #144434
08/02/07 07:11
08/02/07 07:11
Joined: Mar 2006
Posts: 724
the Netherlands
Frits Offline OP
User
Frits  Offline OP
User

Joined: Mar 2006
Posts: 724
the Netherlands
Thanks Doug.


I like to keep scripting simple, life is hard enough as it is.
Regards,
Frits
Re: Sky00.wdl [Re: Frits] #144435
10/26/07 01:56
10/26/07 01:56
Joined: Nov 2005
Posts: 17
D
dominant Offline
Newbie
dominant  Offline
Newbie
D

Joined: Nov 2005
Posts: 17
hey man I had the same question. I can make the sky transistion ingame by pressing tab and typing in"Sky00_day_to_night(1000);" at runtime but how can i code this to happen during the game? I know it sounds dumb and simple but I'm trying to learn coding by disecting the codes but i just can't get this. any help would be appreciated.


Moderated by  HeelX, rvL_eXile 

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