Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: dikla on Fri 28/05/2004 14:52:21

Title: how to make char. clime a ledder?
Post by: dikla on Fri 28/05/2004 14:52:21
just as the topic said. if is MoveCharacter to hotspot above the ledder will it work? shall i do something with the ledder (its an object?) i want my char. to clime the ledder and pick something like fruit from a tree.
dikla
Title: Re: how to make char. clime a ledder?
Post by: Mr Jake on Fri 28/05/2004 15:09:05
you need to make an animation I think :/

Make the animation of the character climbing the ladder, place an object over the ladder on screen and have it animate when you use the ladder.
Title: Re: how to make char. clime a ledder?
Post by: .. on Fri 28/05/2004 18:33:10
Just animate the character climbing the ladder, picking the fruit and then climbing back down :P
Title: Re: how to make char. clime a ledder?
Post by: Ben on Fri 28/05/2004 19:57:38
It's "climb" and "ladder," by the way...
Title: Re: how to make char. clime a ledder?
Post by: Skio on Fri 28/05/2004 21:46:52
You can also create a view of the character climbing and assign a new walkable area to the ladder with the climbing view (you can choose the view in the area's properties).

You will have ofcourse to experiment a bit with the area so that the character is synchronized.
Title: Re: how to make char. clime a ledder?
Post by: dikla on Sat 29/05/2004 00:24:01
ladder. of coure. i am very proud of myself because i made 2 animation (1 for up and 1 for down) and i also removed my character from the room (because it will be stupid of my character to see himself going up... ha ha ha). now she is climing up and down BUT
1. i want her to be delayed at the top of the ladder, say you got it, when the "hand" (interact) touching  display
"you reach it but it too small", wait a little and only than get down.
2. after she to down, she has to be her own herself again, and i didnt find stutable command.
here is the script:

// script for hotspot10: Use inventory on hotspot
if (character[GetPlayerCharacter()].activeinv == 31) {
LoseInventory (31);   
ObjectOn (1);// the ladder


SetCharacterTransparency(DEBBY,100);// debby disapear

SetObjectView (1,12);//

AnimateObject (1,0,9,0);// she clime up

Display ("You got it!");// here i want her to stay a little

SetObjectView (1,13);

AnimateObject (1,0,9,0);//going down (very quickly. you dont even see that she is climing up) just down.

AddInventory (31);//to try another tree

//here i am missing her come back.


}
THX
dikla
Title: Re: how to make char. clime a ledder?
Post by: Hollister Man on Sat 29/05/2004 02:40:36
Sorry if I sound mean, but could you try to finish your words, and maybe re-read it before you post?Ã,  I am very confused looking at this, it's pretty hard to read.

Quote
i also removed my character from the room (because it will be stupid of my character to see himself going up... ha ha ha
...

i want her to be delayed at the top of the ladder, say you got it, when the "hand" (interact) touchingÃ,  display
"you reach it but it too small", wait a little and only than get down.

Is the character changing from male to female, or are there two characters?Ã, 
Title: Re: how to make char. clime a ledder?
Post by: dikla on Sat 29/05/2004 10:31:08
well, my character is a women. i need to slow down the climbing and the getting down. if you can see from this script of mine, it happans very quickly, (i guess because the two animations are very close to each other) and all you can see is her going down. than, while animate the first view, my character disapear(as she should be), and after she go down i want her character to REAPEAR, and i dont know the right command.
to sum it up:
1. i need a break between  the 2 animations.
2. i want my character to reapear.
thx dikla :-* :-*
Title: Re: how to make char. clime a ledder?
Post by: Scorpiorus on Sat 29/05/2004 17:26:06
You have to block the script while the object is animating. SetCharacerTransparency(xxx, 0) will make DEBBY visible:

// script for hotspot10: Use inventory on hotspot
if (character[GetPlayerCharacter()].activeinv == 31) {
LoseInventory (31);   
ObjectOn (1);// the ladder


SetCharacterTransparency(DEBBY,100);// debby disapear

SetObjectView (1,12);//

AnimateObject (1,0,9,0);// she clime up
while (IsObjectAnimating(1)) Wait(1); //wait for animation to be finished

Display ("You got it!");// here i want her to stay a little

SetObjectView (1,13);

AnimateObject (1,0,9,0);//going down (very quickly. you dont even see that she is climing up) just down.
while (IsObjectAnimating(1)) Wait(1); //wait for animation to be finished

AddInventory (31);//to try another tree

SetCharacterTransparency(DEBBY,0);// passing 0 for DEBBY to appear

//here i am missing her come back.


}
Title: Re: how to make char. climb a ladder?
Post by: dikla on Sat 29/05/2004 17:39:51
My dear, i could kiss you. as i said you are miracl worker. it work perfectly. i tried it myself but it didnt work and now it is working. you must admit i am prograssing in scripting. i am very glad you help me. thank you!.
dikla
Title: Re: how to make char. clime a ledder?
Post by: Scorpiorus on Sat 29/05/2004 17:46:16
Hehe, you're welcome. Scripting is not that difficult as one may think.