Jump to content

drarem

Members
  • Posts

    234
  • Joined

  • Last visited

Posts 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. 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.

  3. 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

  4. 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.

  5. 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.

  6. 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)

  7. 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

  8. 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.

    • Upvote 1
  9. 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.

×
×
  • Create New...