brad Posted August 18, 2011 Posted August 18, 2011 hola amigos quisiera saber como hacer un script que pasa o lee varias imaganes pasando cada una ,como crear 30 frames y juntarlas para aser una imagen gif ,ya que lo vi en resident evil BOSS gracais soy nuevo en eesto del lua y quisiera aprender si alguieen me dice como jeje gracias
E-mail Posted August 18, 2011 Posted August 18, 2011 Hi i translate JR10 For you hi friends want to know how to make a script that reads several imaganes pass or passing each, and create 30 frames and put them together a gif image for the grove, and I saw him in Resident Evil gracais BOSS EEST am new to lua and I wanted to learn from someone tells me how lol thanks
brad Posted August 18, 2011 Author Posted August 18, 2011 hello friends I sable How to unscripted happens or read several imaganes Passing Each AS CREATE paragraph 30 frames and put them together Asher a GIF image, and I saw him in Resident Evil Boss gracais EEST am new to lua and I learn of someone as given me hehe thanks Sory for writen in spanish
JR10 Posted August 18, 2011 Posted August 18, 2011 Put all the frames, add them in the meta. And onClientRender: local index = 1 addEventHandler("onClientRender" , root , function ( ) dxDrawImage ( --argmuments , "imageName"..index..".png" ) index = index + 1 if index >= MaxFrame then index = 1 end end ) Of course you will edit it, for the name of your images, and the max frame.
brad Posted August 18, 2011 Author Posted August 18, 2011 example I: local index = 1 AddEventHandler ("onClientRender" root function () dxDrawImage (- argmuments "ImageName" .. name .. "png"). index = index + 1 if index> = MAXFRAME then Index = 1 final final) and in meta.xml I'm right, please corrigame, if I'm wrong lead by example, thank you very much
JR10 Posted August 18, 2011 Posted August 18, 2011 Dude, it was an example, you have to edit dxDrawImage, and edit the MaxFrame. And what the hell is final, and it's addEventHandler. Use the wiki: https://wiki.multitheftauto.com/wiki/Main_Page
brad Posted August 18, 2011 Author Posted August 18, 2011 a ok tonka to edit as it appears ok there and put the name of the image "image" frames get "imagen0" "Image1" + please
brad Posted August 18, 2011 Author Posted August 18, 2011 in "ImageName" I put the name that is Umbrella.png but to read the other frames as it gets in name and in meta.xml AddEventHandler and where would you go? thanks, I appreciate your help
brad Posted August 18, 2011 Author Posted August 18, 2011 But I would put "ImageName" The script and lo read by ImageName1, ImageName2 etc. ..?
brad Posted August 18, 2011 Author Posted August 18, 2011 I could make a script for two png images? ready to use? I catch as well and is something else to my knowledge, thanks for your help mcuh friend
JR10 Posted August 18, 2011 Posted August 18, 2011 Look, you need scripting knowledge to do that. How much frames you have?
Castillo Posted August 18, 2011 Posted August 18, 2011 Brad, I think you should start with something easier if you don't have scripting knowledge.
brad Posted August 18, 2011 Author Posted August 18, 2011 JR10 the number of frames are 31 png but not to press said that 3 is for a specific server
brad Posted August 18, 2011 Author Posted August 18, 2011 and you're right solidsnake14 1.es for server 2. I was a little change and that and pss scripts and walked me all over the internet looking for classes and nothing: S
brad Posted August 18, 2011 Author Posted August 18, 2011 I want to know how it goes then everything in this script so I learn something else: D: D: D
Castillo Posted August 18, 2011 Posted August 18, 2011 Dude, you'd three posts without a reason, don't you know how to use the "EDIT" button? P.S: I told you to start learning from something EASIER.
brad Posted August 18, 2011 Author Posted August 18, 2011 well I will, but first I was very interested in having this script is for a server lua 1.aprender without a teacher is very difficult 2.In the web is not easy tutorials to learn
Castillo Posted August 18, 2011 Posted August 18, 2011 I've learnt without a "teacher", I just used the wiki and this forum, there are many examples in the wiki, if you really want to learn, you should spend some time there. P.S: You should learn some english, not all the wiki is translated to spanish https://wiki.multitheftauto.com/index.ph ... _Principal
brad Posted August 18, 2011 Author Posted August 18, 2011 thank you very much friend, I pass by wiki and I English, I need the script to ask
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now