Jump to content

Yue

Members
  • Posts

    2,449
  • Joined

  • Last visited

Everything posted by Yue

  1. Yue

    Player for Mars

    Working on a 2D menu, creating a 3D scenario is not very practical because of the loading time delay. So a 2D menu would be much better, it loads much faster. These are the things that sometimes give me desire of to pass to C++ to use the threads. But not i believe that it is necessary.
  2. self.imgPanel:SetObject("backgroundcolor",Vec4(1,1,1,0))
  3. Yue

    Leadwerks GUI

    I do not know how to set an image with transparency on a button.
  4. I don't know how to establish the transparency of a miagen GUI.
  5. --##=========================================================## --## Proyecto : Mars. --## Fichero : CMenuStart.lua --## Scripter : Yue Rexie. --## Web : www.iris3dgames.xyz --## Notas : Clase de objeto MenuStart. --##==========================================================# CMenuStart = {} function CMenuStart:Create(GUI) local this = {} this.imgPanel = nil this.gPanel = nil this.btnStart = nil this.btnOptions = nil this.btnExit = nil this.base = nil this.imgMars = nil function this:Start(GUI) self.base = GUI:GetBase() self.imgMars = GUI:LoadImage("Materials/Images/Marte.tex") end this:Start(GUI) function this:Draw() self.imgPanel = Widget:Panel(0,0,200,200,self.base ) self.imgPanel:SetBool("border",false) self.imgPanel:SetImage(self.imgMars) end System:Print(">>>Creating Menu Start... Ok!<<<") return ( this ) end
  6. It seems that the problem is the GUI, if it is not used, it works perfectly, even if this means creating a GUI system based on the engine's own image drawing commands.
  7. Well, I think there is no solution to this, I've been at it for a long time. It's terrible for a game user and that its resolution scaling doesn't work, but I think that nothing can be done.
  8. What I have discovered is that this works correctly if in the configuration of the card does not exceed a certain setting, look at this image. If I use Ultra HD, HD, SD configuration, full screen problems. Now if I go down and leave this configuration in the lower resolutions, everything is fine. PC resolutions.
  9. Yue

    Player for Mars

    Trying to be as organized as possible in this, so that it doesn't get out of hand.
  10. https://www.leadwerks.com/learn?page=API-Reference_Object_Entity_GetMaterial
  11. 1 - Animated entity. ( Mesh ) 2 - Hook a script to that entity. 3 - Simple example in the Start function of the script. function Script:Start() self.entity:PlayAnimation("Idle") end
  12. Yue

    Player for Mars

    Loading screen ...
  13. Yue

    Road tracer

    Will you put it in the workshop? It's really amazing.
  14. Yue

    Player for Mars

    The indicator of life, is the green silhouette, from top to bottom, is Oxygen, stamina (resistance), the orange is radioactivity, protection of the space suit, then water, and rest. This is very sad, it's an analogy to the situation that my daughter is going through, which is on the planet Cancer (Mars) and little by little I'm doing things.
  15. Any suggestions? 2020-08-29 10-43-30.mkv
  16. Yue

    Player for Mars

    On Mars, strange things happen.
  17. function Script:UpdateWorld() self.anim = "Idle" if Window:GetCurrent():KeyDown(Key.W) then self.anim = "Walk" if Window:GetCurrent():KeyDown(Key.Shift) then self.anim = "Run" end self.entity:PlayAnimation(self.anim) end Any questions I am ready to answer. The PlayAnimation command has different parameters, among those if the animation is a single shot that is useful to check when the animation reaches the end and ends. This triggers a check on a method of the script the last one down, the entity script.
  18. I think you should first go through a deep engine learning process before a big project. Any specific questions to be answered?
×
×
  • Create New...