Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 844 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mino, squik, AemStones, LucasJoshua, Baklazhan
19061 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,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İ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 | chip programmers | 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