Jump to content

josk

Members
  • Posts

    567
  • Joined

  • Last visited

Posts posted by josk

  1. Go through all these tutorials by Aggror.

     

    Evan though the video's are in C++ they are easy to follow, play around with the code.

     

    Lua has a nice learning curve, easier I think than Unity Script.

     

    Also Leadwerks has a nice community that will answer many questions.

    • Upvote 1
  2. Thanks I have now got it working and understand Lua that bit more.

     

    I initially had the For code in a script which was attached to many entities but then realised that code would be getting called 50 times. So it only needs to be in the App script.

     

    I will remember the Lua forum tag, learning new things all the time.rolleyes.gif

  3. In the App file I create some instances of a model, I then attach the square Lua file.

    In the Lua file there is

    Script.block = 0.

    How can i change that value using code in the App file, or can you?

     

    for  a =1,10 do
    for  b =1,10 do
    land = tolua.cast(land:Instance(),"Model")
    land:SetScript("Scripts/Player/square.lua")
    land:SetPosition(a,0,B)
    land.block = land.block + 1 -- this does not do it
    end end
    

     

    Can someone set me straight.

  4. I know its late but here's a exe as well as the vid, with only a basic level, very little coding and none of the game play and/or map creation I wanted to add I did not think it was worth putting up.

     

    I encourage people to join the next tournie, it does you a lot of motivation.

    • Upvote 2
  5. I did start on two different projects, didn't finish either one, let that be a lesson. I must admit I had very little time this week.

    Anyway I thought I would show a vid of my projects. First part is my second project, in theory you are a tank being chased by enemy tanks. You get pick-ups and both tanks can fire.

    The second part is a defender type. Both are basic.

     

    • Upvote 1
×
×
  • Create New...