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), 12,885 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 3 of 3 1 2 3
Re: Alpha Test [Re: not_me] #176863
01/09/08 04:43
01/09/08 04:43
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B Offline
Expert
mpdeveloper_B  Offline
Expert

Joined: Feb 2006
Posts: 2,185
also, to get your grass directly on the ground put this in the grass' action (behavior):

var tr;
var res;
vec_set (tr, my.x);
tr.z -= 999999;
res = c_trace (my.x, tr, ignore_me + ignore_you + ignore_passable + use_polygon);
if (res != 0)
{
vec_set(my.x, target);
}

for that to work, you have to make sure that the model's center is at the bottom of the grass, unless you want to make some grass look smaller, to make some diversity, then do this:

var grheight = 10;//if grass is too far in the ground, make the number smaller, if you want it to go down more, make this number more
var tr;
var res;
vec_set (tr, my.x);
tr.z -= 999999;
res = c_trace (my.x, tr, ignore_me + ignore_you + ignore_passable + use_polygon);
if (res != 0)
{
vec_set(tr.x, target.x);
tr.z -= random (grheight);
vec_set(my.x, tr);
}

also if you are using model grass, i also recommend using this in the action as well:

my.pan = random (360);

don't place either of the codes in a while loop, just put it in an action that you apply to the grass, i assume you have one since you will be fading out the grass, one last important thing to say, since you will have multiple versions of the same model or sprite with the same action make sure you do this:

var grass_num = -1;

action grass_act
{
grass_num += 1;
my.skill68 = grass_num; //any skill will work here, just use one that the grass doesn't use anywhere else


blah blah code....
}

Last edited by mpdeveloper_B; 01/09/08 04:51.

- aka Manslayer101
Re: Alpha Test [Re: mpdeveloper_B] #176864
01/09/08 05:26
01/09/08 05:26
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Looks pretty good. Main issue I saw was some alpha-sorting issues on the tree branches. Easy fix though...


xXxGuitar511
- Programmer
Re: Alpha Test [Re: xXxGuitar511] #176865
01/09/08 19:05
01/09/08 19:05
Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
frazzle Offline
Expert
frazzle  Offline
Expert

Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
@ mpdeveloper_B:

I thought he used it when recording
Besides, I guess 3dgs will still give a more accurate approach since the fps is displayed directly via the engine. Thus it can compute the rendering aspect more correctly.

Cheers

Frazzle


Antec® Case
Intel® X58 Chipset
Intel® i7 975 Quad Core
8 GB RAM DDR3
SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB
NVIDIA® GeForce GTX 295 Memory 1795GB
Re: Alpha Test [Re: frazzle] #176866
01/10/08 01:24
01/10/08 01:24
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B Offline
Expert
mpdeveloper_B  Offline
Expert

Joined: Feb 2006
Posts: 2,185
i guess...i just don't trust the fps reading in 3DGS, because of the whole "limited to your refresh rate" thing...

i hope the advice i posted above is useful for this project too, if you need more help, i can help small amounts, but not much


- aka Manslayer101
Re: Alpha Test [Re: mpdeveloper_B] #176867
01/11/08 00:13
01/11/08 00:13
Joined: Sep 2005
Posts: 508
Texas
not_me Offline OP
User
not_me  Offline OP
User

Joined: Sep 2005
Posts: 508
Texas
thanks...the scripts were to supposed to help with speed right? but theres not really any change in speed. but the info is very helpful!

Last edited by not_me; 01/11/08 00:15.

-Initiate Games
-Level designer

http://www.sckratchmagazine.com
Re: Alpha Test [Re: not_me] #176868
01/11/08 00:15
01/11/08 00:15
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B Offline
Expert
mpdeveloper_B  Offline
Expert

Joined: Feb 2006
Posts: 2,185
no, they were for your grass to stick to the ground, and to randomly go deeper in the ground, so that some grass is shorter than others, the last one was for you to make sure to do that with your actions, so that the engine will count them as seperate entities, if you don't there will be problems, especially with ai and grass, trees, etc...


- aka Manslayer101
Re: Alpha Test [Re: mpdeveloper_B] #176869
01/11/08 04:19
01/11/08 04:19
Joined: Sep 2005
Posts: 508
Texas
not_me Offline OP
User
not_me  Offline OP
User

Joined: Sep 2005
Posts: 508
Texas
ah ok thanks


-Initiate Games
-Level designer

http://www.sckratchmagazine.com
Re: Alpha Test [Re: not_me] #176870
01/18/08 00:15
01/18/08 00:15
Joined: Apr 2007
Posts: 35
texas
over_board Offline
Newbie
over_board  Offline
Newbie

Joined: Apr 2007
Posts: 35
texas
btw we've come up with a solution for the media player instead of having it be an external entity that you download from on you hard drive. it will just be portion of the website. it will be a downloader imbedded into the website.


New progammer for... Initiate Games (c) 2007 and Sckratch Magazine (c) 2007 http://www.sckratchmagazine.com
Page 3 of 3 1 2 3

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