Robin Posted October 2, 2008 Share Posted October 2, 2008 Glad you like my code.Here's how to add a different attack frame:```' Check for animation  Anim = 1 If Player(Index).Attacking = 0 Then  Select Case GetPlayerDir(Index)   Case DIR_UP    If (Player(Index).yOffset > 8) Then Anim = Player(Index).Step   Case DIR_DOWN    If (Player(Index).yOffset < -8) Then Anim = Player(Index).Step   Case DIR_LEFT    If (Player(Index).xOffset > 8) Then Anim = Player(Index).Step   Case DIR_RIGHT    If (Player(Index).xOffset < -8) Then Anim = Player(Index).Step  End Select Else  If Player(Index).AttackTimer + 1000 > GetTickCount Then   Anim = 4  End If End If```Then find:```rec.Left = (GetPlayerDir(Index) * 3 + Anim) * 32```and replace with:```rec.Left = (GetPlayerDir(Index) * 4 + Anim) * 32```Enjoy. Link to comment Share on other sites More sharing options...
Tyr Posted October 8, 2008 Share Posted October 8, 2008 Hey,well done, but the when i walk downstairs the top of his head kinda comes after… it looks weird ^^any idea how to fix?- Tyr Link to comment Share on other sites More sharing options...
Robin Posted October 8, 2008 Share Posted October 8, 2008 Put the same code in BltPlayerTop. Link to comment Share on other sites More sharing options...
Tyr Posted October 8, 2008 Share Posted October 8, 2008 @Don't:> Put the same code in BltPlayerTop.lol i replaced the same twice :) thx awesome code! Link to comment Share on other sites More sharing options...
anasky Posted October 29, 2008 Share Posted October 29, 2008 Is it easy to make this work at the original RMXP sizes?Not the 3|3|3|3 thingy but:1|1|11|1|11|1|11|1|1 Link to comment Share on other sites More sharing options...
xeross Posted October 29, 2008 Share Posted October 29, 2008 rmxp is1|1|1|11|1|1|11|1|1|11|1|1|1if you change the offsets it can be done but it would require multiple character sets or an offset 256 every new char Link to comment Share on other sites More sharing options...
anasky Posted October 29, 2008 Share Posted October 29, 2008 Well, you could make it so it opens 32 spaces.Also, then what I ment isn't in RMXP style, although, you could simply make this line:1,2,3,2,1,2,3,2,1,2,3,…I think it'll work, since the 4th tile of RMXP is the same one as the 2nd one :P Link to comment Share on other sites More sharing options...
Robin Posted October 29, 2008 Share Posted October 29, 2008 Go rip it from Essence, or buy the feature from my 'Help Wanted' thread :POr, just add a little bit of code to BltPlayer changing the rec depending on the direction. Link to comment Share on other sites More sharing options...
anasky Posted October 29, 2008 Share Posted October 29, 2008 And now in noob language plz? xD Link to comment Share on other sites More sharing options...
Hattivatti Posted November 15, 2008 Share Posted November 15, 2008 This is an awesome code, thx! Works flawless, I'm certainly gonna use this in my game :) Link to comment Share on other sites More sharing options...
Robin Posted November 16, 2008 Share Posted November 16, 2008 No problem. Link to comment Share on other sites More sharing options...
cheatking Posted November 20, 2008 Share Posted November 20, 2008 Can you edit it for npc's too please? Link to comment Share on other sites More sharing options...
Chakkra Posted February 6, 2009 Share Posted February 6, 2009 @Sean:> [Nanoware] link=topic=30628.msg313647#msg313647 date=1227180371]> Can you edit it for npc's too please?yes please. I want it to work with my npcs.. cuz they look how they originally looked before i put the code in =PEdit: oops! necro post. Sorry =S Link to comment Share on other sites More sharing options...
The Oracle Posted February 8, 2009 Share Posted February 8, 2009 @Chakkra:> link=topic=30628.msg364642#msg364642 date=1233957573]> yes please. I want it to work with my npcs.. cuz they look how they originally looked before i put the code in =P> Edit: oops! necro post. Sorry =Sdon't necropost. Save the kittens. Link to comment Share on other sites More sharing options...
Drag0n Posted February 8, 2009 Share Posted February 8, 2009 Well now it's not necroing anymore since Chakkra posted. New topic, basically. Link to comment Share on other sites More sharing options...
minipimp Posted February 16, 2009 Share Posted February 16, 2009 Very nice work bro, it made my project have smooth movement to it , Very nice. Link to comment Share on other sites More sharing options...
adenketr Posted March 19, 2009 Share Posted March 19, 2009 Great! Link to comment Share on other sites More sharing options...
Darknessboy Posted April 4, 2009 Share Posted April 4, 2009 I can't find 'BltPlayer' where do i look????? I'm new to all this…... :embarrassed: Link to comment Share on other sites More sharing options...
gooku Posted April 11, 2009 Share Posted April 11, 2009 Hi ;D My eanglish is easy I`am from germany ;pppp XDHow to get this code on npc??```I want it to work with my npcs..``` Link to comment Share on other sites More sharing options...
gooku Posted April 12, 2009 Share Posted April 12, 2009 BltPlayer findyou must click Ctrl + Fand write to box BltPlayer and change option Current Projectmy eanglish is easy xd are you understand my eanglish?? ;] Link to comment Share on other sites More sharing options...
Jed Posted April 13, 2009 Share Posted April 13, 2009 using this. Link to comment Share on other sites More sharing options...
Necromancer Posted May 3, 2009 Share Posted May 3, 2009 Attacking won't work for me. It walks perfect, but attacking? not working. Link to comment Share on other sites More sharing options...
Styker Posted May 8, 2009 Share Posted May 8, 2009 I know this is a few days late but im stupid with VB, and still tryin to learn it.I did the first 1 and it works and all but I cant get robins extra attack frame to work right, when i use it, it plays the attack animation for the up movement as the stance for the facing down and the walk left animations for the walk down and the attack down for the attack left , etc. its all messed up and idk y , and ive replaced the sprites positions but more than 1 direction/attack uses one frame so cant fix that with moving the sprites around, sorry for the big confusing explaination.Thank You for any help. Link to comment Share on other sites More sharing options...
Patrick Posted May 10, 2009 Share Posted May 10, 2009 Huh, when i play from vb6 it has an error and it tells me to look in frm mirage for the error.Line 2407: Cannot load control Socket; license not found.that's the error. Any help?edit: when i try to compile it also has an error. But this time it opens a form up and shows this line with the red stuff highlighted.frmMirage.txtChat.SelStart = Len(frmMirage.txtChat.Text) Link to comment Share on other sites More sharing options...
yorty Posted May 26, 2009 Share Posted May 26, 2009 @gooku:> Hi ;D My eanglish is easy I`am from germany ;pppp XD> > How to get this code on npc??> > ```> I want it to work with my npcs..> ```Btw that's in mah sig. 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