Animation Problem/ character over walkbehinds?

Started by SLaMgRInDeR, Sun 04/05/2003 13:40:50

Previous topic - Next topic

SLaMgRInDeR

hi, im trying to get it so that when you use a certain object on a a certain hotspot it plays an animation wich i have made, the only problem i have is im not sure how to make it into a flic animation, i have it as a GIF and i have the frames, in AGS i have made it into a view and have the animations uploaded as sprites, but how can i make it so that either it plays the view, or how can i turn it into a flic?
thanx,
SLaM
(   (   ( <( -_-)> )   )   )
*ps i looked in the manual and couldnt find anything on this.

EDIT: I also need to get a character to look like he's sitting on a chair, but the chair is a walkbehind, is this possible?
thanx,
SLaM
(  (  ( <( -_-) > )   )   )

AJA

#1
Uh... is it a fullscreen animation? If so then you should save your animation as flic, mpg or avi. At least Animation Shop can save you gif animation into a flic or avi. And then you can use the PlayFlic or PlayVideo depending on the format you'll use.

-EDIT-

ps. Animation Shop comes with Paint shop pro if you didn't know that.

SLaMgRInDeR

thanx, but (this will sound stupid but i only started using AGS this week!) once i have the flic, mpeg, or avi, how do i get it into AGS so that i can tell it to play it? as you cant load animations into the sprite manager or anything.
(   (   ( <( -_-)> )   )   )

Ishmael

#3
If it is a fullscreen anim, put a script in the interactions that that checks if the object is right, and if it is, the it plays the anim. If it is just that the char animates when you use the object, script with SetCharacterView() and ReleaseCharacterView()... (was it like that..?)

function hotspot#_whatever-was-here
// use inv on hotspot
 if(character.inv_activated==12) { // if the object to use is number 12
   SetCharacterView(EGO, 7); // if the animation wanted to perfom is in view 7...
   AnimateCharacter(EGO,2,0,0); // ... loop 3. Read the AnimateCharacter discription too
   while (character[EGO].animating)
     Wait(1);
   ReleaseCharacterView(EGO);
 }

umm.... does that code btw even work?
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

SLaMgRInDeR

argh, sorry, thanx but no thanx, i cant use the scripting apart from conversations, i need to know wich selections and things to make in the interaction editor to make it play a full screen animation (i also need to know how to get the full screen animation into AGS), when i use a certain object on a certain hotspot. (exept the certain object on certain hot spot i know how to do.)
sorry about that.
(   (   ( <( -_-)> )   )   )

Ishmael

#5
I thought I saw somthing about this in the manual.... See the PlayFlic() discription in the manua for some info on this... Damn, I know how to do this, but I can't tell it to others....  :(

----- EDIT after Jimi's post down there V -----

Damn damn me....... I am too used to use the search...
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

SLaMgRInDeR

ok, just to save me checking throught the whole manual, which section is it in?
(   (   ( <( -_-)> )   )   )

Jimi

Text script functions --> Multimedia functions.  ;)

SLaMgRInDeR

#8
taa. ok iv found that, but still, how do i get a flic or whatever into AGS?
(   (   ( <( -_-)> )   )   )

Ishmael

#9
This is from the manual:

QuotePlayFlic
PlayFlic (int flic_number, int options)

Plays a FLI or FLC animation. The game checks for FLICx.FLC and FLICx.FLI (where X is FLIC_NUMBER) and if it finds one, plays it.
OPTIONS has these meanings:

0  player can't skip animation
1  player can press ESC to skip animation
2  player can press any key or click mouse to skip animation
+10 (ie.10,11,12) do not stretch to full-screen, just play at flc size

This is identical to the room interaction command "Play FLI/FLC VAL". The game is paused while the animation plays.
Example:

PlayFlic (2,1);

will play flic2 and the player will be able to skip the flic by pressing the ESC key.

Its all there. (I think)
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

SLaMgRInDeR

yeh, thats what i read, but what i need to know is how to get the flic into AGS.
(   (   ( <( -_-)> )   )   )

Ishmael

[Under this patch are so may ugly words, that I am ashamed of myself] You put the flic into the game dir and name it flic1.flc for example. Then you use the command PlayFlic(1,what-ever-u-choose); to play it... its so simple...
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

SLaMgRInDeR

#12
ok, can u tell me where the flic actually goes to (what value the variable has to be made to)
because the things im putting in, it either dose nothing, or crashes!
(   (   ( <( -_-)> )   )   )

SLaMgRInDeR

#13
ok, lemme start again, this time ill go into more detail, only read it if ur gonna help tho as if your not and you want to play the game after then ittl spoil it...

Spoiler
you have to use the item "Dulo with key" on "Eject-o-matic Chair" and i want it to play a clip of the character "Dulo" walking over to the "Eject-o-matic chair"
[close]
what would be the best way to do this?
(   (   ( <( -_-)> )   )   )

AJA

#14
Okay... read carefully:

1. Go to room editor and select the hotspot/object which is the eject-o-matic chair.
2. Then click the interactions button.
3. Select use inventory on object from the interaction editor.
4. Select "Conditional - if inventory item was used" and set the inventory item number. Press OK.
5. Open the "Do nothing" interaction and select run script.
6. Click edit script.
7. Add line "PlayFlic(FLICNUMBER,OPTIONS);" changing FLICNUMBER to the number you named your flic (eg. flic1.flc -> 1) and OPTIONS to the options you wish to be used.
8. Save the script.
9. Press OK.
10. Press Close
11. Save the game
12. Test

That's how to play a flic, but you want just to move the character there? If that's all then use the MoveCharacter and MoveCharacterEx functions. And just to help you with scripting download the ScriptEditor (see my signature). It'll help you a lot when looking for different functions...

SLaMgRInDeR

thanx, it was just the play ing the flic i was stuck on, ill try it now.
(   (   ( <( -_-)> )   )   )

SLaMgRInDeR

#16
ok problem, i put the flic in the ags dir, called it flic1.flc (and its the 1st flic in there) and still it says "unspecified symbol 'flic1'"
any idea whats going on?
(  (   ( <( -_-)> )   )   )

Ishmael

did you type PlayFlic(flic1....);?

And AGS dir..?

put it in the game dir, where all the room files are... and type PlayFlic(1....); as the command... I use .... because the rest of the params are inrelevant in this case...
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

SLaMgRInDeR

yeh i typed that, and i meant the game dir, i think its somthing to do with the thing i used to convert it into a flic. any ideas apart from whole screen animations, as it is only the character im animating, buthe has to move across the screen.
(   (   ( <( -_-)> )   )   )

scotch

you shouldn't actually write flic1..
if it's called flic1.flc you should use
PlayFlic(1,0);

The error you're getting is caused by you putting it in wrong, not the flc file being bad.

SMF spam blocked by CleanTalk