Author Topic: Animation Problem/ character over walkbehinds?  (Read 1469 times)  Share 

SLaMgRInDeR

  • i R An EvUl GiNiUs... GYaHuK Huk hUK!
Animation Problem/ character over walkbehinds?
« on: 04 May 2003, 13:40 »
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
(  (  ( <( -_-) > )   )   )
« Last Edit: 08 May 2003, 07:21 by SLaMgRInDeR »

Re:Animation Problem
« Reply #1 on: 04 May 2003, 14:28 »
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.
« Last Edit: 04 May 2003, 14:32 by AJA »

SLaMgRInDeR

  • i R An EvUl GiNiUs... GYaHuK Huk hUK!
Re:Animation Problem
« Reply #2 on: 04 May 2003, 14:47 »
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

  • I put AGS on my CV.
    • I can help with translating
    •  
Re:Animation Problem
« Reply #3 on: 04 May 2003, 16:41 »
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?
« Last Edit: 04 May 2003, 17:03 by TK »
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
|

SLaMgRInDeR

  • i R An EvUl GiNiUs... GYaHuK Huk hUK!
Re:Animation Problem
« Reply #4 on: 04 May 2003, 17:30 »
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

  • I put AGS on my CV.
    • I can help with translating
    •  
Re:Animation Problem
« Reply #5 on: 04 May 2003, 17:33 »
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...
« Last Edit: 04 May 2003, 17:55 by TK »
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
|

SLaMgRInDeR

  • i R An EvUl GiNiUs... GYaHuK Huk hUK!
Re:Animation Problem
« Reply #6 on: 04 May 2003, 17:49 »
ok, just to save me checking throught the whole manual, which section is it in?
(   (   ( <( -_-)> )   )   )

Re:Animation Problem
« Reply #7 on: 04 May 2003, 17:52 »
Text script functions --> Multimedia functions.  ;)

SLaMgRInDeR

  • i R An EvUl GiNiUs... GYaHuK Huk hUK!
Re:Animation Problem
« Reply #8 on: 04 May 2003, 18:01 »
taa. ok iv found that, but still, how do i get a flic or whatever into AGS?
(   (   ( <( -_-)> )   )   )
« Last Edit: 04 May 2003, 18:12 by SLaMgRInDeR »

Ishmael

  • I put AGS on my CV.
    • I can help with translating
    •  
Re:Animation Problem
« Reply #9 on: 04 May 2003, 19:31 »
This is from the manual:

Quote
PlayFlic
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)
« Last Edit: 04 May 2003, 19:32 by TK »
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
|

SLaMgRInDeR

  • i R An EvUl GiNiUs... GYaHuK Huk hUK!
Re:Animation Problem
« Reply #10 on: 04 May 2003, 19:51 »
yeh, thats what i read, but what i need to know is how to get the flic into AGS.
(   (   ( <( -_-)> )   )   )

Ishmael

  • I put AGS on my CV.
    • I can help with translating
    •  
Re:Animation Problem
« Reply #11 on: 04 May 2003, 20:04 »
[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
|

SLaMgRInDeR

  • i R An EvUl GiNiUs... GYaHuK Huk hUK!
Re:Animation Problem
« Reply #12 on: 04 May 2003, 20:27 »
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!
(   (   ( <( -_-)> )   )   )
« Last Edit: 04 May 2003, 20:36 by SLaMgRInDeR »

SLaMgRInDeR

  • i R An EvUl GiNiUs... GYaHuK Huk hUK!
Re:Animation Problem
« Reply #13 on: 04 May 2003, 21:09 »
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...

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"
what would be the best way to do this?
(   (   ( <( -_-)> )   )   )
« Last Edit: 05 May 2003, 12:33 by SLaMgRInDeR »

Re:Animation Problem
« Reply #14 on: 05 May 2003, 18:08 »
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...
« Last Edit: 05 May 2003, 18:12 by AJA »

SLaMgRInDeR

  • i R An EvUl GiNiUs... GYaHuK Huk hUK!
Re:Animation Problem
« Reply #15 on: 06 May 2003, 16:30 »
thanx, it was just the play ing the flic i was stuck on, ill try it now.
(   (   ( <( -_-)> )   )   )

SLaMgRInDeR

  • i R An EvUl GiNiUs... GYaHuK Huk hUK!
Re:Animation Problem
« Reply #16 on: 06 May 2003, 16:48 »
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?
(  (   ( <( -_-)> )   )   )
« Last Edit: 06 May 2003, 16:48 by SLaMgRInDeR »

Ishmael

  • I put AGS on my CV.
    • I can help with translating
    •  
Re:Animation Problem
« Reply #17 on: 06 May 2003, 17:01 »
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
|

SLaMgRInDeR

  • i R An EvUl GiNiUs... GYaHuK Huk hUK!
Re:Animation Problem
« Reply #18 on: 06 May 2003, 20:04 »
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

  • Mittens Baronet
Re:Animation Problem
« Reply #19 on: 07 May 2003, 00:38 »
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.