Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (TipmyPip, AndrewAMD, NewbieZorro), 16,055 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Were have i gone wrong this time [Re: jigalypuff] #242161
12/21/08 18:21
12/21/08 18:21
Joined: Oct 2004
Posts: 1,655
T
testDummy Offline
Serious User
testDummy  Offline
Serious User
T

Joined: Oct 2004
Posts: 1,655
Quoting jigalypuff.
Quote:
Does the function stop running btw?

Which function?
The following probably terminate fine for that condition:
creditsf_add,
creditsf_set,
creditsf_update
tile_event
However, another tile function, or other functions might need some adjustment.
Look for non-terminating loops and resources which should be purged or hidden.
From another thread, Help with unit placement, a sample offered by THIS:
Code:
function tile_position() {
	my.enable_click = on;
	my.event = tile_event;
	//MOUSE_RANGE = ?; // default = 1000
	my.tilt = 90;
	my.orientated  = on;
	my.transparent = on;
	while(1) {
		my.alpha = 80+20*sin(my.x+my.y+total_ticks*15);
		wait(1);
	}
}

If something like that is used, that may be a problem, or it might not be.
while(1) can be replaced with while(me), and the ship selection portion might be placed in it's own level, so that maybe, on the next portion (playable portion), another level is loaded and the loop terminates automatically?
The loop might terminate on level change without modification (from while(1) to while(me)).
(Supposedly, on level change, globals keep 'their' values.
So, for example, the value of credit variables might stay the same.
Some variables might have to be reinitialized.
Some variables might be used to store state between levels.)

More information may be required to answer the question adequately / pseudo-adequately / inadequately again.

Re: Were have i gone wrong this time [Re: testDummy] #242180
12/21/08 19:24
12/21/08 19:24
Joined: Nov 2005
Posts: 1,007
jigalypuff Offline OP
Serious User
jigalypuff  Offline OP
Serious User

Joined: Nov 2005
Posts: 1,007
Well i`m not loading another level as i have yet to make them smile What i am aiming for is basic skirmish battles against the ai or another player, i shall have maps for the players to choose from each one being a level. Yhey can choose the map when they choose a race to play as. i have not yet done the code for that though.

At the moment i have a panel button which when pressed should begin the game, however i have found that i can still place ships if there is credit remaining, plus event click on placed ships does not work.

This is the start code as it currently stands.
Code:
function accept_choices()
{
	accept_txt.visible = off;
	cards_selected.visible = off;
	ship_pan.visible = off;
	credits_txt.visible = off;
	wait(2);
	galactic_map.visible = on;
}


I`m thinking proc_kill perhaps to stop the functions? I kinda want the grid to remain as i am thinking of making it turn based.


Why does everyone like dolphins? Never trust a species which smiles all the time!
Page 2 of 2 1 2

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

Gamestudio download | 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