Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: BowsetteGamer on Mon 12/02/2024 18:45:54

Title: Help! How to make a character appear next to another character
Post by: BowsetteGamer on Mon 12/02/2024 18:45:54
Hello guys, how are you? I have a question, is it possible for a character to appear next to another character? without the attributes. Cambanero or. Walk.
The intention is not so that the movement of the character can be seen, but so that it appears in different areas of the screen, in the same scenario.
I'm a little confused  ???  ???
Title: Re: Help! How to make a character appear next to another character
Post by: RootBound on Mon 12/02/2024 19:59:04
You can set character.x and character.y to make the character change location instantly.

If the character is arriving from a different room, you can use character.ChangeRoom(room, x, y) to have them appear where you want.

Check out all the character functions here  :)  :
https://adventuregamestudio.github.io/ags-manual/Character.html#character-functions-and-properties
Title: Re: Help! How to make a character appear next to another character
Post by: BowsetteGamer on Tue 13/02/2024 02:22:02
Quote from: RootBound on Mon 12/02/2024 19:59:04You can set character.x and character.y to make the character change location instantly.

If the character is arriving from a different room, you can use character.ChangeRoom(room, x, y) to have them appear where you want.

Check out all the character functions here  :)  :
https://adventuregamestudio.github.io/ags-manual/Character.html#character-functions-and-properties


and To set Character.x Character.y you would use walk or move?
I'm looking at the manual and apparently Walking and Moving are the same but with the exception that one shows the animation loop and the other doesn't.
Title: Re: Help! How to make a character appear next to another character
Post by: RootBound on Tue 13/02/2024 03:23:09
You don't need to use either one.

Simply write:

Character.x = 120;
Character.y = 40;

With whatever numbers you want (120 and 40 are just examples).
Title: Re: Help! How to make a character appear next to another character
Post by: BowsetteGamer on Mon 22/04/2024 13:16:26
Hey this has worked, sorry for not responding in time, thanks Brother.