Forum

> > CS2D > General > CS2D Lua Scripting Tutorial Development
Forums overviewCS2D overviewGeneral overviewLog in to reply

English CS2D Lua Scripting Tutorial Development

74 replies
Page
To the start Previous 1 2 3 4 Next To the start

old Re: CS2D Lua Scripting Tutorial Development

simonkilleR2
User Off Offline

Quote
i whanna ask from u.. lua script can have cs2d script :
Spoiler >

so can i do: bind "[player chose key in manu when say "!key"{return 1}" "Action/Script"?
if yes plz make me this script... i heard y make a lot of great lua's..

old Re: CS2D Lua Scripting Tutorial Development

SQ
Moderator Off Offline

Quote
kNedLiik has written
So when it'll be released?

So, someone did bring it again.
Well, I was kinda offline from 2010/05 until 2010/09 so the project was frozen.
I'm not sure, if there are still people wanting this...
I might continue developing this tutorial, however not this month.
I want to release Shadows & Lights project first.
edited 1×, last 08.11.10 08:32:17 pm

old Re: CS2D Lua Scripting Tutorial Development

Rainoth
Moderator Off Offline

Quote
Hey GrandMyth i recently saw a MSek edited script by Skipper and i would like to know how put hud images on screem... Like lets say a green square in certain position. I would like you to put this too.

     Best Regards,
      Batlaizys
          IMG:https://www.planetsmilies.com/smilies/character/character0050.gif

old Re: CS2D Lua Scripting Tutorial Development

kNedLiik
User Off Offline

Quote
I think there are lot of people waiting for this . I was googling for a tutorial and I found this and I readed the posts and I see you stopped but I think if you creat one It will be so much cool.

old Lua scripted car

KimKat
GAME BANNED Off Offline

Quote
I like the scripting from both Leegao and Blazzingxx(a.k.a. GrandMyth) although the only thing that's needed is the explanation of the script otherwise howelse would it be possible to identify all these scripting stuff... I am not a excellent programmer and I probably never will be. But yeah I did create some Lua scripts before.

Hmm... so how about teaching some of us how to script a car in cs2d with boundary boxes and such, I mean when the car collides with player at a rather high speed the player dies and if it's a low speed of the vehicle then it simply blocks player from going through the car. I know this is possible in Lua, no one has yet done it I guess. This would be a rather great tutorial on knowing how to create a car using Lua scripting. Otherwise we go by the examples that GrandMyth decides, but I was just suggesting this.

old Re: CS2D Lua Scripting Tutorial Development

Vectarrio
User Off Offline

Quote
KimKat has written
Hmm... so how about teaching some of us how to script a car in cs2d with boundary boxes and such, I mean when the car collides with player at a rather high speed the player dies and if it's a low speed of the vehicle then it simply blocks player from going through the car. I know this is possible in Lua, no one has yet done it I guess. This would be a rather great tutorial on knowing how to create a car using Lua scripting. Otherwise we go by the examples that GrandMyth decides, but I was just suggesting this.

Well, I started to do something like that, I started with controls, the movement hook cought the keys pressed and sent player in previous location(befor key pressing), so there was: W-forward, S-Backward, A-Turn left, D-turn right

old Re: CS2D Lua Scripting Tutorial Development

Flacko
User Off Offline

Quote
Vectar666 has written
...the movement hook cought the keys pressed and sent player in previous location...

Aw, I sense uglyness in this script.
CS2D passes an integer when using the move hook, but the actual player position is stored like a double (or float?) so you won't be able to move the player in your desired position keeping it from "shaking". Moreover you have to add the lag some players will have.

I hope DC can make the move hook recieve non-truncated numbers so (better) bounding boxes and stuff will be possible

W/E On topic: This won't stop noobies from complaining about scripting, however, you could still include examples from game programming techniques in general.

old Re: CS2D Lua Scripting Tutorial Development

RAVENOUS
BANNED Off Offline

Quote
batlaizys has written
Hey GrandMyth i recently saw a MSek edited script by Skipper and i would like to know how put hud images on screem... Like lets say a green square in certain position. I would like you to put this too.

     Best Regards,
      Batlaizys
          IMG:https://www.planetsmilies.com/smilies/character/character0050.gif


I can tell you how to do, if you want to. There's no problem from my side^^
To the start Previous 1 2 3 4 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview