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
0 registered members (), 18,008 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
inf level missing something #401376
05/18/12 03:47
05/18/12 03:47
Joined: Dec 2010
Posts: 100
D
Dega Offline OP
Member
Dega  Offline OP
Member
D

Joined: Dec 2010
Posts: 100
I made a level in WED editor with two sqaures that are to be used for the ground and sky. Then i made a script but when i loaded it all the wmb level had a space between it in all directions instead of being connected. I just want two squares going in all directions. One for the sky and the ground. Here is my code and please let me know if i am missing something

Code:
#include <acknex.h>
#include <default.c>
#include <level.c>

function main()
{
	level_loadendless("world.wmb");
	terrain_tile(level_ent);
}




boolean my.awesomeness = so true;
Re: inf level missing something [Re: Dega] #401381
05/18/12 07:15
05/18/12 07:15
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
endless terrain requires hmp terrains to be used instead of level blocks


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: inf level missing something [Re: sivan] #401424
05/19/12 02:35
05/19/12 02:35
Joined: Dec 2010
Posts: 100
D
Dega Offline OP
Member
Dega  Offline OP
Member
D

Joined: Dec 2010
Posts: 100
Thank you and now i tried to load a model in it but the model somehow can go to the edge. I used ent_create() and put an action into to make it move. Am I not supposed to use c_move() or something???


boolean my.awesomeness = so true;
Re: inf level missing something [Re: Dega] #401426
05/19/12 05:59
05/19/12 05:59
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
you need to set a bounding box with c_setminmax(entity)
and be sure to set the model position in MEd to the correct place (i often use transform global > center)


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: inf level missing something [Re: Espér] #401464
05/20/12 01:50
05/20/12 01:50
Joined: Dec 2010
Posts: 100
D
Dega Offline OP
Member
Dega  Offline OP
Member
D

Joined: Dec 2010
Posts: 100
I have done that and it still doesn't work.I have a model that can go to the edge of the terrain even though i used a terrain and level_loadendless().Also i switched to the camera mode by pressing 0 and then the terrain worked again but the model still went to the edge of the terrain. Here is my new code:
Code:
#include <acknex.h>
#include <default.c>
#include <level.c>
action player_stuff()
{
	c_setminmax(me);
	while(1)
	{
		camera.tilt = -10;
		camera.x = my.x - 160;
		camera.z = my.z + 50;
		c_move(me,vector(key_w - key_s * 15 * time_step,0,0),nullvector,GLIDE);
		wait(1);
	}
}

function main()
{
	level_loadendless("freeworld.hmp");
	terrain_tile(level_ent); 
	ent_create("player.mdl",vector(0,0,25),player_stuff);
}



Last edited by Dega; 05/20/12 04:26.

boolean my.awesomeness = so true;

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