8 view character problems

Started by Knox, Sun 17/05/2009 05:41:41

Previous topic - Next topic

Knox

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).
--All that is necessary for evil to triumph is for good men to do nothing.

GarageGothic

#1
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.

Knox

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.
--All that is necessary for evil to triumph is for good men to do nothing.

Knox

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:



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!

--All that is necessary for evil to triumph is for good men to do nothing.

Trent R

#4
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.


~Trent
To give back to the AGS community, I can get you free, full versions of commercial software. Recently, Paint Shop Pro X, and eXPert PDF Pro 6. Please PM me for details.


Current Project: The Wanderer
On Hold: Hero of the Rune

Knox

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?
--All that is necessary for evil to triumph is for good men to do nothing.

SMF spam blocked by CleanTalk