Jump to content

Yue

Members
  • Posts

    2,449
  • Joined

  • Last visited

Everything posted by Yue

  1. What I have is this for my character. https://paste.ofcode.org/eGevSatEFbYMYjnp2tXfbj
  2. I would like a debugging system for lightning, that is to say that while developing the game, it is possible to see a 3d line showing the lightning, I think that would avoid many headaches, as well as a debugging system for the joints.
  3. https://www.leadwerks.com/learn?page=API-Reference_Object_Entity_PlayAnimation The first value refers to the name of the animation or its respective number in sequence. The second value is the speed, this doesn't really agree with my modeling program, and I think it's especially due to the keyframes marked in the animation so it's time to look for a calculation that matches the engine. In the third value, is the speed with which you change between animations, a default value is 500, but I use 100 milliseconds, which implies that the transition between animations is smooth. A fourth value, is by default the number zero, this implies that the animation is reproduced in a cycle where when arriving to the last keyframe it returns to the first one, if the value of the number 1 is put to the animation they are reproduced in a single shot, it is not a cycle and it is then when we can resort to the script in Script EndAnimation(), where the number of that sequence is returned when that animation finishes.
  4. local enemy = Model:Load("Models/Characters/Player/Yue.mdl",1) local amarillo = Material:Load("Models/Characters/Player/Negro.mat",1) amarillo:SetBlendMode(Blend.Solid) enemy:SetMaterial(amarillo)
  5. I want to change the color of the eye material, however it applies to all models. And the script is only attached to a single mesh of the robot. Any suggestions? local surface = self.entity:GetSurface(0) --Get the surface material local material = surface:GetMaterial() material:SetColor(1,0,0)
  6. Yue

    Hud Energy

    Double post.
  7. I think this is fixed, what I've noticed is that sometimes the hard drive is doing things in the background and that's when it gets slow. Now I made a video for the power hud test, and this works well.
  8. https://www.leadwerks.com/learn?page=API-Reference_Object_Context_DrawLine
  9. It's not the purification mode, it's the liberation mode. But I'm going to try to get as far as I can, working with lag is very terrible.
  10. This is very strange, I have implemented other classes with tables and everything works well, now I want to create the Hud class, but this returns an error. From my point of view everything must work well, of course according to my logic, there is if someone helps me.
  11. I'm sorry to disappoint you, the result of those low fps is that my machine is very old. At that point I don't think I can get very far with the project, this has a lot of lag. It seems that it will be another learning project. In debug mode the FPS is at 5 /9. It's terrible, but I have to settle for that.
  12. // Nice!! auto window = CreateWindow("MyGame", 0, 0, 1280, 720);
  13. I love that new way of writing the code, it's much more readable. auto window = Turbo::CreateWindow("MyGame", 0, 0, 1280, 720);
  14. I created the animation run, now it's just implement it in the game.
  15. As a note, I'm just using Diffuse + Normal in the materials.
  16. I didn't do anything, I just put a cone light hooked to the character and made my flashlight. And it seems to work well.
  17. Where documentation SetResponse??
×
×
  • Create New...