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
1 registered members (TipmyPip), 18,649 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 2 of 2 1 2
Re: Have trouble learning to make player entity move [Re: Goodberry] #237838
11/22/08 20:22
11/22/08 20:22
Joined: Nov 2008
Posts: 24
Nevada, USA
Kevinper Offline OP
Newbie
Kevinper  Offline OP
Newbie

Joined: Nov 2008
Posts: 24
Nevada, USA
I just changed it and now it told me that "No c codes in wdl scripts".

So, thank you, it was wrong.

So I change it (saved the move.c as move.wdl) to <include move.wdl> and now I get all kinds of errors:


< VECTOR speed;>
move.wdl 1:0 (): Keyword unknown VECTOR

< vec_zero(speed);>
move.wdl 3:0 (): Keyword unknown vec_zero

< speed.x=5*(key_w-key_s)*time_step>
move.wdl 10:0 (): Parameter unknown speed Keyword

< c_move(my,speed,nullvector,IGNORE_PASSABLE|GLIDE)>
move.wdl 11:0 (): Parameter unknown speed


Last edited by Kevinper; 11/22/08 20:24. Reason: clarificaton

Kevin
Re: Have trouble learning to make player entity move [Re: Kevinper] #237843
11/22/08 21:19
11/22/08 21:19
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
just changing the extension wont make lite-c code -> c-script, there are several syntax diffrences.


3333333333
Re: Have trouble learning to make player entity move [Re: Quad] #237845
11/22/08 21:30
11/22/08 21:30
Joined: Nov 2008
Posts: 24
Nevada, USA
Kevinper Offline OP
Newbie
Kevinper  Offline OP
Newbie

Joined: Nov 2008
Posts: 24
Nevada, USA
I guess you are saying that a wdl is c-script? I didn't know that. I thought that all this stuff was supposed to work together. At least I know where to look.


Kevin
Re: Have trouble learning to make player entity move [Re: Kevinper] #237848
11/22/08 21:58
11/22/08 21:58
Joined: Nov 2008
Posts: 24
Nevada, USA
Kevinper Offline OP
Newbie
Kevinper  Offline OP
Newbie

Joined: Nov 2008
Posts: 24
Nevada, USA
Yay! I changed the script in WED to use A7 - Lite C. Then I included the move.c in the lite c file and everything works.

I want to thank you all for your patience, advice and code to work with!


Kevin
Page 2 of 2 1 2

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