Jump to content

drarem

Members
  • Posts

    234
  • Joined

  • Last visited

Everything posted by drarem

  1. Are there any exposed lua commands to steam achievements? I tried this but I get 'attempt to call SetAchievement (nil value)'... Steamworks:Initialize() Steamworks:SetAchievement("testing") Thanks.
  2. it would if it rotates the group of drawn 2d textures and not each one individually, as what I'm doing does now.
  3. Are you saying to create a pivot at run-time and then parent it to the sprites, so just rotating the pivot will rotate all the sprites at once around the pivot? Not trying to do 2d rendering, trying to create graphics at run-time on a 2d billboard or plane. It will be part of the initialization process; it wont be rebuilt with game loop.
  4. Looks like I need to do this, is this the idea? -- get current buffer, set as old buffer -- set context to buffer -- draw stuff on it (image texture, drawrect, etc) -- blit to destination texture -- reset buffer to old buffer
  5. How can I draw to a single texture? I want to assemble an image and rotate the whole image, instead of rotating the individual pieces. Like cards on a table, i want to rotate the table with the cards in 2d without including any other images being displayed. I'm trying out the LED library, seems to work ok but I keep hitting the wall of not being able to rotate the group of images. thanks.
  6. Ok, I was thinking more about when I put together 2d 'panels' with dynamic and static text, wouldn't a loop drawing on several of those panels impact the performance with every game frame? These panels would be built at run-time and only drawn once each game loop.
  7. How would I draw an image onto a backbuffer, then render that to current ? Looking at reducing many looped draws to one. Thanks.
  8. Maybe a sprite is the way to go with that.
  9. Trying to rotate a 2D image I've loaded, is it possible? Getting a nil function call on :SetRotation.. self.img1 = Texture:Load("Materials/test.tex") self.img1:SetRotation(...) attempt to call method 'SetRotation' (a nil value)
  10. it works on windows, but gives me an error in linux, something along the lines below. I took out the goto and ::conuntine:: label in linux version, and it worked, not sure what is going on with the linux version. Some of code below is parapasted, dont take it verbatim. Look more at the goto label code. Thanks. :27: '=' expected near 'countinue' LUA CODE: local stack = Stack:Create() test = stack:pop() goto countinue end ... .. ::continue:: end
  11. I wonder if you can go through each child joint on a model and change it to that type, is that even possible?
  12. It took me a bit, remember to add a pivot to the end of the barrel named 'pivot'. Look at the example pistol that comes with leadwerks. Then it's on to adjustment hell as you try to align the gun with your view perfectly, save as prefab, remove your extra gun in the scene so it doesn't crash and make sure your gun prefab is attached to your model. Something like that.
  13. it's already in there, no difference
  14. strange thing is i copied the backup lua of monster and fpsplayer, and put it in place of the new stuff, still had lowered fps.
  15. When there are LUA updates, I use a program called 'Meld', makes it easy to merge my changes with the new stuff that is overlaid.
  16. Anyone else getting 30fps with latest LE update?
  17. Instead of exiting the game and re-entering to see the updated leaderboard scores, is there a way while still in the game to see any updated high scores without having to exit and re-enter? This would be for a restart of the game. Also, are the scores stored somewhere on steam too for public viewing? Thanks.
  18. Is there a limit to how many is listed, like top 100, top 50, or top 20? thnx
  19. Is there a way to paint grass and bushes on imported models..if so how. Thx
  20. Also did the 'veg painting' with other objects, not just the trees. We thought the impact would be minimal but I suppose with no physics and collision the fps impact would be minimal. Thanks.
  21. when painting trees on the landscape using vegetation, and those trees are .mdl's with 10k-15k polys, could this cause an impact? If so what could be done for performance improvement? Thanks.
  22. Tried that too, when I do it turns a shade darker and stays like that during the game. But it's a number i pass, not a string. But I also tried a string and i got the same effect.
×
×
  • Create New...