Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Eight Direction & More Frames
#31
The second one is easier to explain than the first one.



The system is static. That means you must have the same number of frames for each direction and for each action pose. If you wanted 6 frames of animation for your guy walking left, he must have 6 frames of animation for him running right, for him delivering a karate chop, or just standing around tapping his foot.

The number of frames is within the 'Frame Control' section around line 120:
CHARSET_FRAMES = number

So far, so good eh? Now, you probably notice the charset stand frame value below. That' is something if you want your guy to have a standing pose that acts before your character walks or runs or does a karate chop. It's pretty much a bland frame with the guy just... standing.

By default, the standing frame value is set to 'false' as the default 4x4 characterset has no standing pose.. If set to true, it assumes the 1st frame is a pose that the character returns to after moving or jumping. BUT... it adds one more to your expected number of frames. This means, if you set the CHARSET_FRAMES to 6, you need to make a characterset with 7 frames of animation.... the first frame being the bland standing frame and the remaining 6 being your 6 animation frames.

But... it may not be for you.



Now let's get back to your wanting an animated IDLE set.

You said you managed to get the system to use the SORA and RIKU sprites that came in the demo. That means you did set the system to this:
Code:
# Charset Poses  
  CHARSET_TOTAL_POSES   = 8                       # Total number of poses
  CHARSET_POSES         = 8                       # Standard number of poses
and appaently already knew to set the frames to 8.

Heading back to the whole 'Character Standing Frame', did you set the CHARSET_FRAMES to 8 and turned Standing frame to true? Or did you set it to 9 and left it set at false? You may find it looking better with the 8 frames and 1 standing frame feature. ;) At least for this.

Now about having an animated waiting frame, it's simple. Look at the number of poses and DOUBLE it. So for each up-facing walk pose, you need an up-facing idle pose. One for the up-right facing, up left facing, down right facing.... and so on. Obviously, this means your characterset must have them too. There is no 'I want the idle to only be down facing' system. Even if you wanted the sprite to be facing down, you have to make all 8 directions even if all the graphics look the same.

And as to doubling? You would change the 'CHARSET_TOTAL_POSES' to 16 rather than 8 because you now have 16 poses, the first 8 being your walking poses and the next 8 being the idle poses. After that, you set 'CHARSET_POSES_W' (which is for the waiting pose) to start on pose #9 in your custom characterset. Leave the CHARSET_POSES to 8 as you only have 8 poses for each action (walking or idle).
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png] [Image: liM4ikn.png] [Image: fdzKgZA.png] [Image: sj0H81z.png]
[Image: QL7oRau.png] [Image: uSqjY09.png] [Image: GAA3qE9.png] [Image: 2Hmnx1G.png] [Image: BwtNdKw.png%5B]
Above are clickable links

Reply }


Messages In This Thread
Eight Direction & More Frames - by DerVVulfman - 03-05-2008, 06:49 AM
RE: Eight Direction & More Frames - by KDC - 11-07-2011, 11:35 PM
RE: Eight Direction & More Frames - by Kristovski - 11-10-2011, 11:42 PM
RE: Eight Direction & More Frames - by NightOwl - 11-10-2011, 11:50 PM
RE: Eight Direction & More Frames - by JayRay - 08-17-2012, 08:36 AM
RE: Eight Direction & More Frames - by AeroLowe - 09-16-2012, 01:45 AM
RE: Eight Direction & More Frames - by AeroLowe - 09-17-2012, 09:39 PM
RE: Eight Direction & More Frames - by AeroLowe - 09-17-2012, 10:31 PM
RE: Eight Direction & More Frames - by AeroLowe - 09-18-2012, 11:38 PM
RE: Eight Direction & More Frames - by lowcku - 03-16-2013, 12:31 AM
RE: Eight Direction & More Frames - by lowcku - 03-16-2013, 11:30 PM
RE: Eight Direction & More Frames - by DerVVulfman - 03-17-2013, 03:21 AM
RE: Eight Direction & More Frames - by lowcku - 03-17-2013, 04:20 AM
RE: Eight Direction & More Frames - by Zexion - 04-30-2013, 02:43 AM
RE: Eight Direction & More Frames - by BlackCatSG - 04-30-2013, 03:02 PM
RE: Eight Direction & More Frames - by BlackCatSG - 05-01-2013, 09:25 PM
RE: Eight Direction & More Frames - by DrHouse93 - 06-14-2016, 11:51 AM
RE: Eight Direction & More Frames - by DrHouse93 - 06-14-2016, 08:54 PM
RE: Eight Direction & More Frames - by LunarBerry - 06-28-2016, 08:07 PM
RE: Eight Direction & More Frames - by LunarBerry - 06-29-2016, 05:06 AM
Eight Direction & More Frames - by DerVVulfman - 03-11-2010, 04:57 AM
Eight Direction & More Frames - by Ace - 03-11-2010, 02:01 PM
Eight Direction & More Frames - by DerVVulfman - 03-12-2010, 04:22 AM
Eight Direction & More Frames - by Villain - 03-12-2010, 06:57 AM
Eight Direction & More Frames - by DerVVulfman - 03-13-2010, 01:24 AM
RE: Eight Direction & More Frames - by AeroLowe - 09-15-2012, 12:51 AM
Eight Direction & More Frames - by Villain - 03-13-2010, 07:22 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Victor Engine - Multi Frames Victor Sant 0 5,698 12-22-2011, 01:14 AM
Last Post: Victor Sant
   1-Direction Movement woratana 0 4,504 01-22-2009, 01:11 PM
Last Post: woratana
   Scheduler - When you want something to happen after an amount of frames Zeriab 0 4,445 03-08-2008, 06:32 AM
Last Post: Zeriab
   Extra Movement Frames Stone 0 5,119 03-08-2008, 05:02 AM
Last Post: Stone
   Eight Direction Characterset Edit ParaDog 0 4,445 03-04-2008, 04:42 AM
Last Post: ParaDog



Users browsing this thread: