ZDEPTH and FPS variable please...

Ideas for Game Editor evolution.

ZDEPTH and FPS variable please...

Postby Bee-Ant » Fri Dec 28, 2007 8:36 am

I wanna use zdepth variable to change some actors zdepth in RPG game. And use fps variable to change the fps of any animation, such as to make a wheel rotate as fast as it's speed...
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: ZDEPTH and FPS variable please...

Postby Kalladdolf » Fri Dec 28, 2007 9:27 am

I totally agree.
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: ZDEPTH and FPS variable please...

Postby Bee-Ant » Fri Dec 28, 2007 9:47 am

So, Makslane...please grant our request...
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: ZDEPTH and FPS variable please...

Postby j2graves » Fri Dec 28, 2007 9:58 am

I thought that there already was a change zdepth variable.
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: ZDEPTH and FPS variable please...

Postby Bee-Ant » Fri Dec 28, 2007 10:12 am

Not yet, zdepth is a FUNCTION right now. not a VARIABLE
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: ZDEPTH and FPS variable please...

Postby j2graves » Fri Dec 28, 2007 10:14 am

I never quite understood the difference :oops:
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: ZDEPTH and FPS variable please...

Postby Bee-Ant » Fri Dec 28, 2007 10:22 am

Function is such as : CollisionEvent, ChangeAnimation, ChangeZDepth, CreateActor, ChangeTransparency and etc
Variable is such as : r, g, b, angle, x, y, xvelocity, yvelocity, directional_velocity, transp, user variables and etc
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: ZDEPTH and FPS variable please...

Postby j2graves » Fri Dec 28, 2007 10:26 am

oh, I C. :D
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: ZDEPTH and FPS variable please...

Postby Fuzzy » Fri Dec 28, 2007 11:11 am

why do you need direct access to the variable?
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Re: ZDEPTH and FPS variable please...

Postby Bee-Ant » Fri Dec 28, 2007 11:20 am

To make efficiency
Do you know how to make ZDepth of any actor will decrease when his y position decrease too???and increase when his y position increase too???
Such as :
Actor>KeyDown>Up>
Code: Select all
y-=3;
zdepth-=0.1;

Actor>KeyDown>Down>
Code: Select all
y+=3;
zdepth+=0.1;
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: ZDEPTH and FPS variable please...

Postby j2graves » Fri Dec 28, 2007 11:34 am

cool Idea
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: ZDEPTH and FPS variable please...

Postby Bee-Ant » Fri Dec 28, 2007 11:36 am

I wanna make that code in RPG game, to make difference zdepth depend on it's y position
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: ZDEPTH and FPS variable please...

Postby Fuzzy » Fri Dec 28, 2007 12:59 pm

Bee-Ant, is it always changing y by 3? and always changing z depth by 0.1?
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Re: ZDEPTH and FPS variable please...

Postby Bee-Ant » Fri Dec 28, 2007 1:07 pm

So, do you know how to make different zdepth depend on it's y position???
Also make different animation fps depend on it's speed???
I also want this :
Code: Select all
fps=xvelocity;
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: ZDEPTH and FPS variable please...

Postby Fuzzy » Fri Dec 28, 2007 1:25 pm

You cannot change the FPS, but I will show you something with the zdepth function.

Now I need to clarify.. the zdepth will always be a certain value depending on the actual y value, rather than just changing whenever you move? Say that y = 300. zdepth will always be a certain value based on that, rather than how many times a key is pressed? You showed your example that way, but I am just wondering if it can be done without a keypress?

Try this:

Code: Select all
ChangeZDepth("Event Actor", y*0.03333);


Put that right after the y position changes. Note that it could make the zdepth more than 1.0, but thats perfectly fine with GE.
Last edited by Fuzzy on Fri Dec 28, 2007 1:44 pm, edited 1 time in total.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Next

Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest