Gamestudio Links
Zorro Links
Newest Posts
Pause button for evaluation shell?
by AndrewAMD. 08/06/26 05:33
phantom() not defined in indicators.c
by AndrewAMD. 08/05/26 17:49
Fun Arcade Car Physics (nfs style)
by Ezzett. 08/02/26 21:11
ZorroGPT
by TipmyPip. 07/31/26 22:56
Wolfram Mathematica with Zorro
by TipmyPip. 07/30/26 02:07
What are you working on?
by rayp. 07/24/26 22:58
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (VoroneTZ, AndrewAMD), 1,650 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19222 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