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
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 13,346 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
HELP: Creating Pixel points #204811
05/01/08 20:00
05/01/08 20:00
Joined: Jul 2004
Posts: 1,710
MMike Offline OP
Serious User
MMike  Offline OP
Serious User

Joined: Jul 2004
Posts: 1,710
Hello
I want to create a star field map.
My idea, is creating randomly in the beggining of the level, tiny white (with desviations) pixels.. is that possible, i mean, what are the ways?
Creating a skycube would produce blur pixel dots, i want sharp white points dome.

Re: HELP: Creating Pixel points [Re: MMike] #204812
05/01/08 20:11
05/01/08 20:11
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
try ent_create with a white bmap

Re: HELP: Creating Pixel points [Re: Scorpion] #204820
05/01/08 20:59
05/01/08 20:59
Joined: Jun 2007
Posts: 63
Italy
Sonic220 Offline
Junior Member
Sonic220  Offline
Junior Member

Joined: Jun 2007
Posts: 63
Italy
 Code:
starter particle_generator
{
	var particle_start[3];
	wait (3); // wait until the level is loaded
	camera.pan = 0; // now set the new camera position and angles
	camera.tilt = -90;
	camera.roll = 0;
	camera.x = 330;
	camera.y = 0;
	camera.z = 1000;
	while(1) 
	{
		particle_start.x = 1000;
		particle_start.y = 1000 - random(2000);
		particle_start.z = -500 + random(200);
		effect (particle_init, 1, particle_start, normal); 
		wait (1);
	}
}

function particle_init() 
{ 
	temp.x = -(2 + random (15)) * starfield_speed; 
	temp.y = 0; 
	temp.z = 0;
	vec_add (my.vel_x, temp); 
	my.bmap = star_tga; 
	my.alpha = 40 + random(60); // play with this value 
	my.size = 5 + random(5);
	my.bright = on; 
	my.move = on; 
	my.lifespan = 500;
	my.function = size_particles;
} 

function size_particles()
{
	my.size += 0.01 * time;
}

found it on a aum, planet survivor

Last edited by Sonic220; 05/01/08 21:00.

~Vision Divine~
Re: HELP: Creating Pixel points [Re: Sonic220] #204830
05/01/08 22:23
05/01/08 22:23
Joined: Jul 2004
Posts: 1,710
MMike Offline OP
Serious User
MMike  Offline OP
Serious User

Joined: Jul 2004
Posts: 1,710
but, stars cannot move while i move my ship, i mean that's not real, since they are very very far. we cannot see them move. So i need they to create and just blink a little, or, follow the player, but wihout doing trail..


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