Gamestudio Links
Zorro Links
Newest Posts
Removing outliers from files
by EvanTJ. 11/28/26 18:19
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (EvanTJ, Quad, AndrewAMD), 4,715 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 4 1 2 3 4
New guy needs help please :) #262638
04/25/09 03:54
04/25/09 03:54
Joined: Apr 2009
Posts: 81
J
JakeBilbe Offline OP
Junior Member
JakeBilbe  Offline OP
Junior Member
J

Joined: Apr 2009
Posts: 81
Hey I only downloaded this like 4 hours ago, but I made a game kinda rubbish but all it is. Is a grassy land and a model I downloaded I have set it so that when I press (a,s,w,d) he moves but he don't show the animations.

Can someone help me there? also I set space bar so it pushed up on my.z but I want it so my guy jumps up about 30 ft really fast then gently hovers down is that possible? if not can someone tell me the code to make him jump, thanks.

Re: New guy needs help please :) [Re: JakeBilbe] #262645
04/25/09 05:01
04/25/09 05:01
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
For jumping, multiply the 30 with time_step.
EDIT: No, i was wrong. it'll show in one frame. So here's a code:
Code:
while(1)
{
	if(key_space == 1)
	{
		my.z += 5*time_step;
	}
	if(my.z > 25)
	{
		break;
	}
	wait(1);
}

Put it in the player's action.

For animation, use ent_animate.

Last edited by Cowabanga; 04/25/09 05:07.
Re: New guy needs help please :) [Re: Cowabanga] #262646
04/25/09 05:08
04/25/09 05:08
Joined: Apr 2009
Posts: 81
J
JakeBilbe Offline OP
Junior Member
JakeBilbe  Offline OP
Junior Member
J

Joined: Apr 2009
Posts: 81
Thanks for the reply but I have a slight problem when ever I put this:

function main()
{
level_load ("training.hmp");
ent_create (character.mdl);
}

it says that ent_create is not a proper syntax so I had to modify a template level that had a car already put in it but that messed it up because 1. I wanted the map I made and 2. there is no clip on 24/7 and cheers for the code as soon as I can figure this out I will use it laugh.

Re: New guy needs help please :) [Re: JakeBilbe] #262647
04/25/09 05:10
04/25/09 05:10
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Because "ent_create" doesn't have the vector or action. laugh

Re: New guy needs help please :) [Re: Cowabanga] #262648
04/25/09 05:13
04/25/09 05:13
Joined: Apr 2009
Posts: 81
J
JakeBilbe Offline OP
Junior Member
JakeBilbe  Offline OP
Junior Member
J

Joined: Apr 2009
Posts: 81
So what does that mean lol? I haven't figured everything out yet I only know a few things.

PS. I savaged the code you posted and got it to work, the model jumps up fast and keeps going until you let go of space bar then he glides back down.

Last edited by JakeBilbe; 04/25/09 05:15.
Re: New guy needs help please :) [Re: JakeBilbe] #262649
04/25/09 05:18
04/25/09 05:18
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
For the meaning: http://www.conitec.net/beta/aent_create.htm

For the P.S: Thus you need a gravity code.

Re: New guy needs help please :) [Re: Cowabanga] #262651
04/25/09 05:24
04/25/09 05:24
Joined: Apr 2009
Posts: 81
J
JakeBilbe Offline OP
Junior Member
JakeBilbe  Offline OP
Junior Member
J

Joined: Apr 2009
Posts: 81
No that is what I wanted, it looks cool plus I got the idea from FFVII cheers for the help.

Re: New guy needs help please :) [Re: JakeBilbe] #262652
04/25/09 05:25
04/25/09 05:25
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Originally Posted By: JakeBilbe
No that is what I wanted, it looks cool plus I got the idea from FFVII cheers for the help.

Check out the KH movement code: http://www.opserver.de/wiki/index.php/Original_Kingdom_Hearts_Movement

Re: New guy needs help please :) [Re: Cowabanga] #262653
04/25/09 05:33
04/25/09 05:33
Joined: Apr 2009
Posts: 81
J
JakeBilbe Offline OP
Junior Member
JakeBilbe  Offline OP
Junior Member
J

Joined: Apr 2009
Posts: 81
Thanks I'm still having trouble with the entity thing so far I figured our to put

ENTITY* character

function main()
{
level_load ("training.hmp")
character = ent_create("man1.mdl",(0,0,100),null)
}

is this right? cause I'm still getting errors smirk

Re: New guy needs help please :) [Re: JakeBilbe] #262654
04/25/09 05:35
04/25/09 05:35
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Lite-C is Case-Sensetive. So put "NULL" instead of "null".
Edit: And you forgot to put the breakpoint ";".

Last edited by Cowabanga; 04/25/09 05:36.
Page 1 of 4 1 2 3 4

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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