Jump to content

BadMasterUA

Members
  • Posts

    37
  • Joined

  • Last visited

Posts posted by BadMasterUA

  1. hi all now sat disassemble lesson Marble Gamay but I had a problem, I have done everything as a lesson but when you start the climbs here such an error in line 11: self.camera:SetRotation(45,0,0)

    function Script:Start()
    --создает камеру
    self.camera = Camera:Create()
    --обновление камеры
    self:UpdateCamera()--вызывается функцыя
    end
    --добвляет камеру поварачивает ее к шару
    function Script:UpdateCamera()
    -- задает угол для камеры в пространстве
    self.camera:SetRotation(45,0,0)[color=#ff0000]<<<<<<<<<<here[/color]
    --задает прозицыю отнасительно шара
    self.camera:SetPosition(self.entity:GetPosition())
    --подымает камеры вверх на 4
    self.camera:Move(0,0,-4)
    end
    function Script:UpdatePhysics()
    --изменение в игровом окне (получает)
    local window = Window:GetCurrent()
    --если нажата кнопка W добавлется сила к обоекту (заставляет его двигаться (засчет физической силы))
    if window:KeyDown(Key.W) then self.entity:AddForce(0,0,10,true) end
    if window:KeyDown(Key.A) then self.entity:AddForce(-10,0,0,true) end
    if window:KeyDown(Key.D) then self.entity:AddForce(10,0,0,true) end
    if window:KeyDown(Key.S) then self.entity:AddForce(0,0,-10,true) end
    end
    function Script:UpdateWorld()
    --обновляет камеру каждый фрейм
    self.UpdateCamera()
    end
    

  2. I think what you need to do is what i show in my video. Add a pivot, adjust it to the tip of the barrel of the gun and name that pivot "muzzle". Make that pivot a child of the gun so that it follows the gun or look throught all the parts of that model of the gun in the model editor (double click it in the asset browser) and see if there is some point made at the barrels end and rename it as the muzzle.

     

    In the script provided by josh with the DLC weapons pack, it is looking for the muzzle tip in order for it to create the flash of the gun firing and create the "bullet".

     

    Hopefully this helps but take a few minutes and watch my video. It just might help.

    Please let us know if you get this resolved.

    Thanks so yes it is, now think how to make what the player had more than one weapon and that it would have been possible to select

  3. I think you are using the wrong model. You need to select the prefab of the gun you wish to use not the model.

     

    This video shows you how to use the DLC

     

    Hope this helps.

    thank you but I can not afford them to buy too expensive for me (for the cost I eat week in my country)

  4. I have Steam version. I just gave a rather large sum for the engine, for example in my Stronie on fl days of the month and you can live now that would be upgraded to the standard version, you have to pay again takuyuzhe amount. I'm not ready to pay only for the ability to use C + +. Exact time for something like that passed as I bought it did not happen does not change kokogo funktseonale.

    Can not use the vegetation on the landscape. No coherent documentation I do not know much English, and so for me the problem is that it is in the current figure. And eternal bugs bugs of creating materials when not sozdaetsya new material and already prsto zamenyaetsya The created you.

    Sorry but I am disappointed. I understand that not everything is so simple but you need at least that to do something. I pytladsya share with friends svoisi extent klssny engine and promising but alas when I tried to prove it to a friend, he let me.

    I can not even put into words all the feelings that I experienced when I bought this engine, because I spent it all his scholarship, and it was my first daizhok that I bought. But you now I'm only sad when ismytyvayu myta work in it.

    • Upvote 1
  5. Good day yesterday I wrote Josh Clint but he did not answer. I decided to write about this here, I'm interested to poluchaetsya that after additions to the standard version of indy version will not be updated? for the last couple of weeks I did not have more than one update.angry.png

  6. Good afternoon, today faced with the question "how to create grass on the level?". I created a model of grass but to place it on the level. Install one very long and not user-friendly.and if you install a lot of models that will decrease the FPS. tell me how to do it.? And what material is best to use for the grass? because it is now I have it "shine"

     

    2c2d461daee2t.jpg

  7. Began to deal with lua looked lessons (http://www.leadwerks.com/werkspace/page/tutorials/_/getting-started-with-leadwerks-r8) and encountered this error message as pictured tested concentration with what seems to me a lesson all right

    local pos -- обьявление локальной переменной
    function App:Start()
    --название в правом углу
    self.title="1_начало"
    --создаем акно
    self.window=Window:Create(self.title)
    self.window:HideMouse()
    --графическая часть
    self.context=Context:Create(self.window,0)
    if self.context==nil then return false end
    --Создает мир
    self.word=World:Create()
    pos=Vec3(2, 2)
    return true
    end
    function App:Loop()
    --If window has been closed, end the program
    if self.window:Closed() or self.window:KeyDown(Key.Escape) then return false end
    pos.x=pos.x+(1*Time:GetSpeed())-- обновление х координаты
    ---обновление приложения современем
    Time:Update()
    ---обновление мира
    self.world:Update()
    ---рендер мира
    self.world:Render()
    self.context:Clear();
    ---ресуем жолтый квадрат
    self.context:SetColor(120,255,0)
    self.context:DrawRect(0,0,256,256)
    ------text
    self.context:SetColor(0,255,0)
    self.context:SetBlendMode(Blend.Alpfa)
    self.context:DrawText("Hello world",pos.s,500)
    self.context:SetBlendMode(Blend.Solid)
    ---цвет фона
    self.context:SetColor(0,0,0)
    --обновление экрана
    self.context:Sync()
    ---
    return true
    end
    

    9bOuDi81.png

  8. Dig reference , theres is code example in Lua at bottom.

    http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/entity/entitysetcolor-r162

     

    And check all tutorials :

    http://www.leadwerks.com/werkspace/page/tutorials/

     

    You have two other game demos :

    http://www.leadwerks.com/werkspace/files/file/492-bombkiller/

    http://www.leadwerks.com/werkspace/files/file/475-darkness-awaits-project-31/

     

    But begin simple rotating cube , than simple cube with character controller you move using keys and continue until you have all you need to make a game smile.png

    Thank you'll understand next weekend

  9. Good afternoon. I want to know when documentation on the use of Lua in the engine? I read what I suggested Josh in steam (http://steamcommunity.com/sharedfiles/filedetails/?id=221869951#-1) but I still did not understand, looked lessons Aggror

    (

    https://www.youtube.com/channel/UCv4v6y2NZCUazHrXnama37w

    ) but still did not understand. I read lessons Lua but I do not know how to use them with the engine. Please help, I'm very bad speak English and it is very difficult to understand is that there are now in the documentation and video of me than that it is clear. Even zhdya order that would write this, I used a Goole translator.

    sad.png

     

    P.s.

    Sorry if again made ​​a stupid topic.

×
×
  • Create New...