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 3 of 4 1 2 3 4
Re: New guy needs help please :) [Re: Cowabanga] #262665
04/25/09 06:12
04/25/09 06:12
Joined: Apr 2009
Posts: 81
J
JakeBilbe Offline OP
Junior Member
JakeBilbe  Offline OP
Junior Member
J

Joined: Apr 2009
Posts: 81
Nope still not working I even just upped the xyz to 80,80,400 but he is still in the same place :S.

Re: New guy needs help please :) [Re: JakeBilbe] #262666
04/25/09 06:16
04/25/09 06:16
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...
So i'm sorry, i can't help now.

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

Joined: Apr 2009
Posts: 81
Okay thanks anyways dude smile.

Re: New guy needs help please :) [Re: JakeBilbe] #262669
04/25/09 06:35
04/25/09 06: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...
No problem.

Re: New guy needs help please :) [Re: Cowabanga] #262694
04/25/09 08:50
04/25/09 08:50
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
include the default.c
ingame press f11 2 times en look to the sizes of the boundingbox i geus they are into each other

the jumpng part wont work 100% but for starting this is perfect

mabyt thy ths to

c_setminmax(my);
set(my,POLYGON);
whule(my!= NULL)//if you dont use this, you will later get many crashes which you can figure out
{
...


"empty"
Re: New guy needs help please :) [Re: Cowabanga] #262700
04/25/09 09:26
04/25/09 09:26
Joined: May 2008
Posts: 331
Lithuania, Vilnius
Jaxas Offline
Senior Member
Jaxas  Offline
Senior Member

Joined: May 2008
Posts: 331
Lithuania, Vilnius
JakeBilbe, first of all start from the Lite-C workshops, there's all basics what you need smile and second, for player movement it's better way to use c_move function wink


The smaller the bug, the harder it is to kill.
_________________________________________
Forklift DEMO (3dgs)
Re: New guy needs help please :) [Re: Jaxas] #262765
04/25/09 19:52
04/25/09 19:52
Joined: Apr 2009
Posts: 81
J
JakeBilbe Offline OP
Junior Member
JakeBilbe  Offline OP
Junior Member
J

Joined: Apr 2009
Posts: 81
I have done the workshops, but when ever I press any keys that are assigned to move the player entity he just sits there. I changed the camera location and angle so I have a decent look at him and he is not touching the ground also his box thing isn't near the wire frame.

And flits thanks for the code I stuck it in but still not working frown. The model moved about when he was inserted into a .wmb file but the map I am using is a kind of remake of the earth ball map so its a .hmp file and I cant insert objects into it.

Here I compressed the entire folder including the script and files needed to compile a test so if anyone would be so kind to check it out for me, as long as I can get him to move about I can carry on from there thanks.
Download Here


Last edited by JakeBilbe; 04/25/09 21:12.
Re: New guy needs help please :) [Re: JakeBilbe] #262788
04/25/09 21:42
04/25/09 21:42
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Not bad so far, but your problem boils down to one line of code at fault.
But it does contain multiple faults...
ENTITY* MODEL = ent_create("character.mdl",vector(25,55,45),NULL);
Youve already defined MODEL as a global entity pointer, so you can drop the "ENTITY*" from this line.

That takes us down to
MODEL = ent_create("character.mdl",vector(25,55,45),NULL);
This is OK, but youve forgotten to get the model run the main_player action.

That now takes us down to
MODEL = ent_create("character.mdl",vector(25,55,45),main_player);
This is almost working, but using the source code in your link, the compile will fail.
Thats because the main_player action is coded AFTER the main in the source file, so the compiler
doesnt know about the existance of the main_player action when it tries to compile the ent_create line.
Just move the whole main_player action to be above main and it will fix this fault.

And finally, your main_player action is setting the MODEL pointer with the MODEL = me; line,
so you dont need to do it at the ent_create line as well. But this is just a tidying thing.
Not an actual fault. Im just trying to save you from doing the same thing twice.

So that brings the old ent_create line down to be just
ent_create("character.mdl",vector(25,55,45),main_player);
(and moving the main_player action) and it should now work.

PS I would choose a name other than "MODEL" for your player entity, as it MAY be a reserved word.

PPS Welcome aboard.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: New guy needs help please :) [Re: EvilSOB] #262794
04/25/09 22:00
04/25/09 22:00
Joined: Apr 2009
Posts: 81
J
JakeBilbe Offline OP
Junior Member
JakeBilbe  Offline OP
Junior Member
J

Joined: Apr 2009
Posts: 81
Thanks bud you helped it now works :D, now I just gotta figure out where and how to put the animations in for walking lol thanks alot.

Last edited by JakeBilbe; 04/25/09 22:02.
Re: New guy needs help please :) [Re: JakeBilbe] #262796
04/25/09 22:08
04/25/09 22:08
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Use the "ent_animate" function (see manual), and place it inside the "while" loop of your player action.
Just remember to only increment the animation-percent when the player model is actually moving.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Page 3 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