Moving a character without seeing it move?(Solved!)

Started by Swordofkings128, Thu 15/04/2010 05:10:45

Previous topic - Next topic

Swordofkings128

I'm horrible at explaining things, so I have a visual aid.

The problem I'm having is moving the character forward after this animation is finished:


I made sure each one was formatted correctly(the frames expand evenly so the character will stay in the same place while the action is animted), but after it's done, obviously he moved forward(26 pixels to be exact!). When I change the view back to the walking view, he moves back to the starting position in the 1st frame. How can I get it so he can be at point B without seeing him move, like he just appears there, view changed, and good to go? Is there a way around it? I'm fairly decent with scripting, but I can't figure a way around this...

I'm good at walk cycles I suppose, aughghs making a walking backwards animation makes me want to kill myself. I mean, it's already like 7 frames long, making him walk backwards and making it look decent would make it a 13 or 14 frame animation, and I'm only using this one time.

Please help me!

Ryan Timothy B

Code: ags
cCharacter.x-=26;  //subtracts 26 pixels


This should be all you need.

Swordofkings128

Holy crap are you kidding me? It's so simple...

So I tried it, changed Block to NoBlock, and added a Wait(30), and it works great. Thank you!  :) Sorry for wasting space with this topic. I'm not much of a scripter obviously...

Thank you again for your help, this saved me like a couple days worth of work. Now all I have to do is clean the frames up, color them and re-enter them into the editor. Incase your curious, he throws a wrench at a lamp in a swamp to knock if off a rock into the swamp matter, making it drift to were he can pick it up and then sell it for money at the local shop.

SMF spam blocked by CleanTalk