Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Sat 05/02/2005 04:36:41

Title: Some questions
Post by: on Sat 05/02/2005 04:36:41
Hey, i'm new here, i'm from argentina and i started with AGS a coupple of weeks ago.
Here i have some questions (i'm not sure if they're technical enough for this forum)

1- When i import some sprites into the game to make a character animation (like walking) and i animate them there are some problems with the alignment of the sprites and the animation looks really bad. is there anyway to fix this once i've imported the sprites into the engine? if no, how's a good way to have the correct alignment before i import the sprites?

2- I use scalling in my rooms and it works good except that when the character walk and the sprite get smaller it seems like it walks too fast in what is supposed to be a log path, and that desn't make a good feeling of the third dimmenssion. Can i fix that, maybe slowing the velocity of the character in some walkable areas?

3- Each time i click anywhere on the screen to make my character walk to a direction it stops (while it goes to his standing frame) and starts walking. and if i make multiple clicks in order to go further on the room it keeps stoping and stoping ... can that be fixed? is there a way to skip the standing frame if your character is walking and you make a new click??

I hope you understood my crappy english and thanks in advance.
Title: Re: Some questions
Post by: strazer on Sat 05/02/2005 04:54:14
Welcome to the forums!

1.) You can't align frames for walking animations. Make sure they are all the same width when you import them. For animations, you can use the SetCharacterViewEx function with the "align" parameter. There's no equivalent function for objects, so you have to use frames of the same width.

2.) "Characters" pane -> "Adjust speed with scaling"

3.) That shouldn't be happening. There's always a small pause when you click anywhere because of the pathfinder calculating the new path, but the current frame of the character should be retained.
Please post your on_mouse_click function.

Your english is fine.

AGS Beginners FAQ (http://americangirlscouts.org/agswiki/Category:AGS_Beginners%27_FAQ)
Title: Re: Some questions
Post by: Goot on Sat 05/02/2005 18:18:24
If you mess up importing a sprite you can right click on it and choose import over this sprite.
Title: Re: Some questions
Post by: Mr Flibble on Sat 05/02/2005 23:01:45
If you crop (right click on the sprite, Crop Edges) the sprites you can get rid of the jumpyness.
Especially good for different sized sprites that share a common base line.
Title: Re: Some questions
Post by: on Sun 06/02/2005 17:09:09
Thanks for the answers!

1- even if i crop the sprites they still with bad alignment so i'll try to fix that in the image file before i import it to AGS.
2- It works now thanks.
3- You are right the character doestn't go to the standing frame but it does make a little stop when a make a new click, can i fix that?
And i don't now where to look for my on_mouse_click function i have an idea of how that works, but i haven't worked in scripts yet i'm using a template from the internet so i don't know where to lok for my on_mouse_click function.

i already have that that FAQ, but i couldn't find answers for my question so that's why i posted.

and i have another problem:
i've imported some new inventory sprites over some that came with the template and when i run the game the sprites looks huge in my inventory and when i put the mouse on any of those object the game crashes.
What's worng?

Thanks again.
Title: Re: Some questions
Post by: Goot on Sun 06/02/2005 17:42:52
You nede to make your items smaller when you draw them. Something like 40x40 pixels is good.
1-when you import your sprites, leave transparent room on either side so that the character's body is in the middle of the sprite.
3-look up SetCharacterIdle in the manual. I think this might help.