TattieBoJangle Posted January 21, 2015 Share Posted January 21, 2015 Is there anyway to use gif files at all i am trying to get one working with my Hud. Quote Asus Extreme v x99, Intel I7, Windows 8.1 64 Bit, SSD, Geforce GTX 980 4GB, 16GB Ripjaw DDR4 Link to comment Share on other sites More sharing options...
gamecreator Posted January 21, 2015 Share Posted January 21, 2015 If you mean animated then no, I don't believe so. Otherwise just convert it with any free program to PNG. Quote Link to comment Share on other sites More sharing options...
TattieBoJangle Posted January 21, 2015 Author Share Posted January 21, 2015 I see yea i was hoping to have it animated but i guess i can have it static. Another thing i have noticed is i am using a hud that covers my screen sort of like a visor the image is 1920x1080 but when i place it in leadwerks it 2048x1024 for textures this is needed but is there anyway to stop this as i have to scale it and it isnt as good or fits all that well. Quote Asus Extreme v x99, Intel I7, Windows 8.1 64 Bit, SSD, Geforce GTX 980 4GB, 16GB Ripjaw DDR4 Link to comment Share on other sites More sharing options...
YouGroove Posted January 21, 2015 Share Posted January 21, 2015 You can export individual images from your GIF, then just switch them by code to make it animated. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
TattieBoJangle Posted January 21, 2015 Author Share Posted January 21, 2015 Nice could i use a sprite sheet or would i need to have them individual. Quote Asus Extreme v x99, Intel I7, Windows 8.1 64 Bit, SSD, Geforce GTX 980 4GB, 16GB Ripjaw DDR4 Link to comment Share on other sites More sharing options...
YouGroove Posted January 21, 2015 Share Posted January 21, 2015 LE3 don't have texture atlas system, you will have to download all image of your animation individually and store them in some Lua table for example, at some time intervall you will have to display the next image by code. 1 Quote Stop toying and make games Link to comment Share on other sites More sharing options...
TattieBoJangle Posted January 21, 2015 Author Share Posted January 21, 2015 Thanks for the info you don't happen to know why it isn't scaling properly its always short at the top running fullscreen 1920x1080 --Draw overlay if self.overlay ~= nil then context:SetBlendMode(Blend.Alpha) context:SetColor(1,1,1,1) context:DrawImage(self.overlay, 0, context:GetHeight() - self.overlay:GetHeight()) context:SetBlendMode(Blend.Solid) end end Quote Asus Extreme v x99, Intel I7, Windows 8.1 64 Bit, SSD, Geforce GTX 980 4GB, 16GB Ripjaw DDR4 Link to comment Share on other sites More sharing options...
TattieBoJangle Posted January 22, 2015 Author Share Posted January 22, 2015 Got it working ty Quote Asus Extreme v x99, Intel I7, Windows 8.1 64 Bit, SSD, Geforce GTX 980 4GB, 16GB Ripjaw DDR4 Link to comment Share on other sites More sharing options...
gamecreator Posted January 22, 2015 Share Posted January 22, 2015 Nice! Care to share how? Quote Link to comment Share on other sites More sharing options...
TattieBoJangle Posted January 22, 2015 Author Share Posted January 22, 2015 Just the Hud image so far i thought the above method would scale to screen size but for me it didn't so i just had to manually set the image size. context:DrawImage(self.overlay, 0,0, 1920, 1080) As for getting it to animate i have the images but i will need to research more and play with a script to make it so but beginning to wonder what sort of preformance hit this will have. Quote Asus Extreme v x99, Intel I7, Windows 8.1 64 Bit, SSD, Geforce GTX 980 4GB, 16GB Ripjaw DDR4 Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.