Giukko Posted February 23, 2018 Author Share Posted February 23, 2018 Hello, this tutorial allows you to use character or npc with more frames than default (three frame by default: two movements for legs and arms and another one when idle) . Character with more frames can have a more smooth animation.Check this simple steps:1- You need Visual Basic 6 installed on your computer.2- before all you have to know that the file "Config" in "data files" folder has an option called "PframeR" which is the reset and starting value of your frame set. Normally it is better to leave this value as it is (=1). To check the correct order of your character's frames you need to open the folder named "characters" inside "graphics" folder, and choose one set there, to working on. Try with a software which works on images (like photoshop) to add another one frame for each character movement.3- Open in Visual Basic 6 the file "client.vbp" and search the module named "modGameLogic".4- Search inside this module the declaration "ProcessMovement".5- Replace one piece of code with the following, starting from the comment written in green to the other comment written in green: ' Check if completed walking over to the next tile If TempPlayer(Index).Moving > 0 Then If GetPlayerDir(Index) = DIR_RIGHT Or GetPlayerDir(Index) = DIR_DOWN Then If (TempPlayer(Index).xOffset >= 0) And (TempPlayer(Index).yOffset >= 0) Then TempPlayer(Index).Moving = 0 If TempPlayer(Index).Step = 0 Then TempPlayer(Index).Step = 2 ElseIf TempPlayer(Index).Step >= 2 And TempPlayer(Index).Step < 3 Then TempPlayer(Index).Step = TempPlayer(Index).Step + 1 Else TempPlayer(Index).Step = 0 End If End If Else If (TempPlayer(Index).xOffset <= 0) And (TempPlayer(Index).yOffset <= 0) Then TempPlayer(Index).Moving = 0 If TempPlayer(Index).Step = 0 Then TempPlayer(Index).Step = 2 ElseIf TempPlayer(Index).Step >= 2 And TempPlayer(Index).Step < 3 Then TempPlayer(Index).Step = TempPlayer(Index).Step + 1 Else TempPlayer(Index).Step = 0 End If End If End If End If ' Error handler 6- Concentrate your attention in particular on this line of code: "ElseIf TempPlayer(Index).Step >= 2 And TempPlayer(Index).Step < 3 Then". If you change the number in "TempPlayer(Index).Step < 3" with another one, for exaple 4, you will get four frames showed for your character animation.7 - Click on "file" in the Visual Basic menu and "Make Andur Online.exe".8- That's it. Enjoy :)9 - Do the same thing for NPC inside declaration "ProcessNpcMovement". Link to comment Share on other sites More sharing options...
Giukko Posted February 23, 2018 Author Share Posted February 23, 2018 One more note: you have to consider that frames inside your png image file are from number 0 to whatever how many frames you will put inside the png file. ;) Link to comment Share on other sites More sharing options...
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