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
2 registered members (TipmyPip, 1 invisible), 18,758 guests, and 8 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 6 1 2 3 4 5 6
Re: forum code game [Re: oliver2s] #434902
12/30/13 00:04
12/30/13 00:04
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Added wait instruction in doSomething:

Code:
wait(2+floor(random(10)));



Code:
#include <acknex.h>

void doSomething (ENTITY* ent);

void main()
{
	fps_max = 60;
	level_load(NULL);
	
	ENTITY* ent=ent_create(CUBE_MDL,nullvector,NULL);
	
	doSomething(ent);
}

void doSomething (ENTITY* ent)
{
	while(1)
	{
		wait(2+floor(random(10)));
	}
}



"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: forum code game [Re: oliver2s] #434903
12/30/13 00:07
12/30/13 00:07
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
added an instuction in doSomething:
Code:
ent.pan+=time_step;



while code:
Code:
#include <acknex.h>

void doSomething (ENTITY* ent);

void main()
{
	fps_max = 60;
	level_load(NULL);
	
	ENTITY* ent=ent_create(CUBE_MDL,nullvector,NULL);
	
	doSomething(ent);
}

void doSomething (ENTITY* ent)
{
	while(1)
	{
		ent.pan+=time_step;
	}
}



Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: forum code game [Re: alibaba] #434904
12/30/13 01:19
12/30/13 01:19
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
@oliver: What now? Should we merge the code or is alis code just invalid?


Visit my site: www.masterq32.de
Re: forum code game [Re: MasterQ32] #434918
12/30/13 10:00
12/30/13 10:00
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline OP
Expert
oliver2s  Offline OP
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
We should merge together

Code:
#include <acknex.h>

void doSomething (ENTITY* ent);

void main()
{
	fps_max = 60;
	level_load(NULL);
	
	ENTITY* ent=ent_create(CUBE_MDL,nullvector,NULL);
	
	doSomething(ent);
}

void doSomething (ENTITY* ent)
{
	while(1)
	{
		ent.pan+=time_step;

		wait(2+floor(random(10)));
	}
}


Re: forum code game [Re: oliver2s] #434920
12/30/13 10:15
12/30/13 10:15
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
added
Code:
player = ent;



code
Code:
#include <acknex.h>

void doSomething (ENTITY* ent);

void main()
{
	fps_max = 60;
	level_load(NULL);
	
	ENTITY* ent=ent_create(CUBE_MDL,nullvector,NULL);
	
	doSomething(ent);
}

void doSomething (ENTITY* ent)
{
	player = ent;
	
	while(1)
	{
		ent.pan+=time_step;

		wait(2+floor(random(10)));
	}
}


Last edited by HeelX; 12/30/13 10:16.
Re: forum code game [Re: HeelX] #434922
12/30/13 11:59
12/30/13 11:59
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
added
Code:
vec_fill(ent.scale_x, 0.1 + abs(2 * sinv(ent.pan)));



code
Code:
#include <acknex.h>

void doSomething (ENTITY* ent);

void main()
{
	fps_max = 60;
	level_load(NULL);
	
	ENTITY* ent=ent_create(CUBE_MDL,nullvector,NULL);
	
	doSomething(ent);
}

void doSomething (ENTITY* ent)
{
	player = ent;
	
	while(1)
	{
		ent.pan+=time_step;
		vec_fill(ent.scale_x, 0.1 + abs(2 * sinv(ent.pan)));
		wait(2+floor(random(10)));
	}
}


Last edited by Firoball; 12/30/13 13:12.
Re: forum code game [Re: FBL] #434923
12/30/13 12:29
12/30/13 12:29
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Firoball's code compiles and does not give errors, but "0.1 + abs(2 * sinv(ent.pan))" is no vector. I think he meant to write vec_fill instead, so what do we do now?


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: forum code game [Re: Superku] #434924
12/30/13 13:12
12/30/13 13:12
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Yes I did, thanks for pointing out. It was a long night grin
To keep things easy I'll just edit.

Re: forum code game [Re: FBL] #434925
12/30/13 13:43
12/30/13 13:43
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Good!

added:
Code:
camera.x = -96;



code:
Code:
#include <acknex.h>

void doSomething (ENTITY* ent);

void main()
{
	fps_max = 60;
	level_load(NULL);
	camera.x = -96;
	ENTITY* ent=ent_create(CUBE_MDL,nullvector,NULL);
	
	doSomething(ent);
}

void doSomething (ENTITY* ent)
{
	player = ent;
	
	while(1)
	{
		ent.pan+=time_step;
		vec_fill(ent.scale_x, 0.1 + abs(2 * sinv(ent.pan)));
		wait(2+floor(random(10)));
	}
}



"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: forum code game [Re: Superku] #434927
12/30/13 14:03
12/30/13 14:03
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
added:
Code:
ENTITY* entTerrain = ent_createterrain(NULL, vector(0, 0, -20), 45, 45, 100);



code:
Code:
#include <acknex.h>

void doSomething (ENTITY* ent);

void main()
{
	fps_max = 60;
	level_load(NULL);
	camera.x = -96;
	ENTITY* ent=ent_create(CUBE_MDL,nullvector,NULL);
	ENTITY* entTerrain = ent_createterrain(NULL, vector(0, 0, -20), 45, 45, 100);
	
	doSomething(ent);
}

void doSomething (ENTITY* ent)
{
	player = ent;
	
	while(1)
	{
		ent.pan+=time_step;
		vec_fill(ent.scale_x, 0.1 + abs(2 * sinv(ent.pan)));
		wait(2+floor(random(10)));
	}
}


Page 2 of 6 1 2 3 4 5 6

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