Is it possible to align an animation view?

Started by piraatlife4me, Sat 15/11/2003 01:47:32

Previous topic - Next topic

piraatlife4me

Hello again! I am having a problem AHHHHHHHHHHH!
I have alondg animation setup in  my game where the player character dumpster dives into a garbage bin.  I have a movecharacterblocking command moving him to where he climbs up onto a box and then dives into the the dumpster.Everything works great the problem I am having is the animation is not lined up with the normal view sprite that I had before (and this is a big animation taking up a large portion of the screen)so at run time the sprites origin point is the bottom right instead of starting from the bottom left corner like I want so it will be lined up right.He is animating way to the left of the screen when we want it to start exactly where the EGO is standing from the bottom left corner.  My question is in AGS is there a special command or a way to tell it to animate from a certain position such as the bottom left corner of the ego's current position so the animation will run correctly? Or is there something I missed when I imported my graphics?If this is not clear I will explain again. But if anyone knows it would really help me out thanks!
Daniel
Winebarger

Scummbuddy

Every animation frame will need to be as large as the largest x width value and the largest y value... say, you have three frames

1        
50*40                      

2
45* 34

3
60*50

all three would need to be made on a canvas with 60*50 and then align them accordingly
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

piraatlife4me

I'm sorry would you mind explaining it to me again I am a little unclear of what you mean? Are you basically saying that I would have to grab the entire canvas when I upload the sprites into the sprite manager in order to keep it still.  The reason I need this is because the character is animating all over the screen and when it moves it throws it all off too far to the left. I'm sorry I still don't understand from the example you gave me?
Daniel
Winebarger

Timosity

AGS lines up the sprites from the middle of the base of the sprite, It is easier to make them line up if every frame of the animation is the same size (obviously all aligned properly in your favourite paint program), as Scummbuddy suggested.

you can change the alignment of characters with 'SetCharacterViewEx' it explains that in the manual, but I don't think it's possible with objects


There's a couple of suggestions you can try, experiment with them, it's the best way to learn.

Hope it helps.

~Tim

piraatlife4me

Hey Guess what! I used a SetCharacterVIewEx and aligned it left and my animation now runs perfectly the way I want it to.  Thanks again for the help guys!
Daniel
Winebarger

SMF spam blocked by CleanTalk