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 (AndrewAMD, Ayumi, NewbieZorro), 14,141 guests, and 5 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: Probleme mit Events [Re: M4sterm1nd] #312868
02/26/10 17:12
02/26/10 17:12
Joined: Sep 2009
Posts: 1,032
Budapest
Aku_Aku Offline
Serious User
Aku_Aku  Offline
Serious User

Joined: Sep 2009
Posts: 1,032
Budapest
Hi!

First of all it isn't clear for me, your code is written in C-Script or in Lite-C. Please clarify it.
I would do some changes in your code.
In these
  • functions: action player1(),
  • functions: action gegner(),
  • functions: function move_plaser(),
  • function move_procket()
  • function action asteroid()
you defined two name values:
#define schaden skill51
#define health skill52
.
Move both of them out from the functions, and put them for example before the var Raketenzaehler = 0;
line.
I would change this function:
Code:
function remove_procket() 
{
	wait (1);
	ent_create (explosion_pcx, my.x, asteroid_explodes); // create the explosion sprite	
	wait(1)	// <-- INSERT THIS LINE
	ent_remove(my);
}


I think if you insert that line, you give enough time to the asteriod_explodes function to do its duties.
I am sure my proposals will not make your program work.
But i hope will make better and eliminate some bugs/mistakes.

Edit: I recognised right now you posted it into the Lite-C forum, so your code is in that language.

Last edited by Aku_Aku; 02/26/10 17:19.
Re: Probleme mit Events [Re: Aku_Aku] #312897
02/26/10 19:06
02/26/10 19:06
Joined: Jun 2008
Posts: 146
Deutschland
M
M4sterm1nd Offline OP
Member
M4sterm1nd  Offline OP
Member
M

Joined: Jun 2008
Posts: 146
Deutschland
thank you I will make this wink

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