Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

197 Excellent

1 Follower

About tipforeveryone

  • Rank
    Advanced Member
  • Birthday 04/11/1989

Profile Information

  • Gender
  • Location
    Hanoi, Vietnam
  • Interests
    3D Game making, Drawing, Playing games

Recent Profile Visitors

4,729 profile views
  1. tipforeveryone

    Orthographic camera ?

    Hi Josh, when I change Projection Mode of a camera to get Othor view, it makes my scene become so tiny, how can I fix that ? SetFOV or SetZoom does not work
  2. tipforeveryone

    Duplicated text

    https://www.leadwerks.com/learn?page=Tutorials_CPP_Variables There are duplicated "To convert a string to a float.."
  3. tipforeveryone

    Need suggestion about C++ game

    I will create my inventory in C++ instead. Using class to save information is a great idea, thanks but I think saving that list to file is better for me. !
  4. tipforeveryone

    Need suggestion about C++ game

    I want to create a game in which I can choose Weapons and add them into player's inventory in a sperated map (call "loadout.map") That loadout can be saved (player can name the saved one as "recon kit", "assault kit" etc..) or select as active loadout. When a mission map is loaded, player will load saved loadout to play Which is the best way to achieve this ? please give me a direction, and yes, C++ way. The main question is about save and load process, should I use database ?
  5. I find out that making "escape the room" game style is so easy in programing but extreme hard in graphic design

    1. Show previous comments  3 more
    2. Genebris


      That's pretty much all games to be honest.

    3. tipforeveryone


      And Puzzle games are opposite haha

    4. Marcousik


      Well we need artist not only for graphics but for but for a good story too. Anyway my first problem are not the artists but simply finding time is not easy anymore !

  6. tipforeveryone

    C++ Tutorial Content bug

    The line Player player2; is useless for this example. should it be removed ? https://www.leadwerks.com/learn?page=Tutorials_CPP_Classes
  7. tipforeveryone

    C++ Tutorial Content bug

    More here, I think it should be "monster" in the second red rectangle https://www.leadwerks.com/learn?page=Tutorials_CPP_Classes
  8. tipforeveryone

    C++ Tutorial Content bug

    Hi, I post this here instead of Discord, suggested Josh. https://www.leadwerks.com/learn?page=Tutorials_CPP_Operators and https://www.leadwerks.com/learn?page=Tutorials_CPP_Loops
  9. tipforeveryone

    Vegetation Tool

    Hi @Marcousik Would you mind replacing 2 videos in your signature section with 2 youtube link instead ? Somehow it is harder to find information, when your signature is to big and getting others''s attention. Thanks
  10. Learning C++ for the first time just for game dev in Leadwerks, the more I know about C++, the more I feel I can control Leadwerks.

    1. gamecreator


      It is nice to be able to do a little more  It's a tricky tradeoff though: there are some helpful undocumented functions but they don't always work (like world->SetSize()).

  11. Is there any simple explaination why using C++ to make game in Leadwerks can help performance better than lua? (Explain like I am five) :D

    1. Show previous comments  2 more
    2. Josh


      Your bottleneck is likely to be the graphics on the CPU or the GPU, in which case the language your game code is written in doesn't make a big difference. However, Lua involves GC pauses while C++ does not, and C++ runs much faster overall.

      In Turbo your game logic has its own thread, which makes it okay to use Lua with VR even, and even GC pauses won't slow down the renderer.

    3. Slastraf



      Every C instruction corresponds to a very few assembler instructions. You are essentially writing higher level machine code, so you have control over almost everything the processor does. Many other compiled languages, such as C++, have a lot of simple looking instructions that can turn into much more code than you think it does (virtual functions, copy constructors, etc..) And interpreted languages like Java or Ruby have another layer of instructions that you never see - the Virtual Machine or Interpreter.


    4. tipforeveryone


      Thank you guys, I understood
      I am learning C++ hard :)

  12. tipforeveryone

    How can I make my scope like this

    Finally, the solution is verysimple, just move the gun model far away from camera then adjust its FOV or Zoom, muhaallalala
  13. tipforeveryone

    which one has better performance

    Yes that function WithManyCalculation have many thing inside thanks
  14. tipforeveryone

    which one has better performance

    I am optimizing my game's frame per sec and wonder which way of code has better performance function Script:WithManyCalculation() --A ton of code end function Script:UpdateWorld() self:WithManyCalculation() end and function Script:Start() self.time = Time:GetCurrent() end function Script:WithManyCalculation() --A ton of code end function Script:UpdateWorld() if Time:GetCurrent() - self.time > 60 then self:WithManyCalculation() self.time = TIme:GetCurrent() end end
  15. tipforeveryone

    How can I make my scope like this

    This is a good idea but not perfect, in somecases, the scope model has detail when look from outside but some of its faces still visible inside Thanks for your suggestion. I will try it In old COD4, they really make an ACOG scope which player can see inside of it And then in Modern Warfare 2 or 3 when not in aiming mode, this ACOG look so strange, so what is the real technique