Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Knox on Sun 17/05/2009 05:41:41

Title: 8 view character problems
Post by: Knox on Sun 17/05/2009 05:41:41
Hi,

I have a character that has the 8 angles of movement...front, back, left, right, 3/4 up and left, 3/4 down and left, 3/4 up and right, 3/4 down and right.

The problem is when I test it out, it seems it doesnt know which loop to show...I click somewhere on the screen and the characters moves there, but uses a wrong loop.

In the preview, all the animations are ok. They have 11 frames per animation loop. In the character, diagonal loops are actived.

Is there something I did wrong/missing, etc...?

This is the first time I tried out diagonal movement. The basic 4 views works just fine.

Thanks for your help in advance!

(ps: I can send the character export if needed).
Title: Re: 8 view character problems
Post by: GarageGothic on Sun 17/05/2009 05:50:49
Is the order you've written the directions here the same as in the View editor? If so, no wonder you're having problems. This is the order you should put them in (copy-paste from manual):

QuoteLoop 0 - walking down (towards screen)
Loop 1 - walking left
Loop 2 - walking right
Loop 3 - walking up (away from screen)
Loop 4 - walking diagonally down-right
Loop 5 - walking diagonally up-right
Loop 6 - walking diagonally down-left
Loop 7 - walking diagonally up-left

Edit: I guess not since you say the basic 4 views do work, but anyway better double check.
Title: Re: 8 view character problems
Post by: Knox on Sun 17/05/2009 05:54:26
Wow Im such a newbie...DOH

I checked again, and I guess Im just WAY too tired...I was missing the last loop so I guess it could figure out what to use (upper-left loop).

Sorry bout that...thanks GG!

Problem: solved.

Heh.
Title: Re: 8 view character problems
Post by: Knox on Sun 17/05/2009 20:27:56
Ok, Ive checked the tutorials and searched similar questions in the beginner's forums. I didnt see exactly what I was looking for in the manual either. If its there, I seriously apologize in advance.

Ok, here goes:

Right now I have a custom GUI for displaying the dialog options. Its a text window GUI, with 8 images for the creation of the border. I put in B.S text for now, to test. It works, the only thing is I cant seem to be able to hard-set the general width of the dialog box. It seems to take the longest text option, and resizes itself to fit all options. It seems to be defaulted in the middle of the screen, like this image below:

(http://www.2dadventure.com/ags/Gui_1.GIF)

What I would rather is that the options of text are diplayed, centered, within my own GUI that is 62 x 640, and placed at the bottom.

I can do this IF I choose to create a "new GUI" (not a text window), but then, however, the text options get placed in the lower-left hand corner of the window, and cant be centered.

Ive checked in here for some suitable answers without any luck.

So basically what Im asking is: How can I get the dialog options to fit centered into my text window, hard-fixing the height and width so its always the same height+width no matter what is in it, and displaying that gui at the bottom of the screen.

Of course Id implement a scroll feature inside the gui so that options that are hidden below can be accessed.

Thanks!

(http://www.2dadventure.com/ags/Gui_2.GIF)
Title: Re: 8 view character problems
Post by: Trent R on Sun 17/05/2009 22:19:46
I take it your custom gui has been set like that in the General Options, right?

I maybe be wrong, but I think you should be able to get the behavior you want with DialogOptionsRenderingInfo, but it's some pretty advanced scripting. I'd say stick with what you have right now and come back to the problem later, when you'll understand the code and can do it easier and better. Though I would suggest at least reading about it right now, so find the manual entry entitled Custom dialog options rendering.


Also, you could check out a module, such as ab's wonderful CustomDialogGui (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=36313.0).


~Trent
Title: Re: 8 view character problems
Post by: Knox on Mon 18/05/2009 05:37:16
Hey Trent,

Ok, I'll definatly check that out, I have some knowledge of mel scripting (Maya script), so I think I might be able to get into it!

As  for the module, I tried it out and it works great! The only thing is, I cant seem to be able to place exactly where I want the text options to start. There is alignLeft, alignRight, and alignCenter (which works great), but if we want more control on where (in x position) the text options start...what then?

If its a feature not yet implemented, I'll ask the guy who wrote it, Im guessing its not too hard to add?