Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Carles on Sat 25/02/2023 10:25:21

Title: Verbs.MovePlayer in BASS Template [SOLVED]
Post by: Carles on Sat 25/02/2023 10:25:21
Hello,
I have always been using the Tumbleweed template and now I have some question about how to use some basic things from the BASS template.
If I want to make the player go to a hotspot and then say something, without being blocked, I would use this:

function hHotspot1()
{
if (Verbs.MovePlayer(175, 90)){
player.FaceDirection(eDirectionUp);
if(Verbs.UsedAction(eGA_LookAt)){
player.Say("");
}
else Verbs.Unhandled();
}
}

But I don't know how to do it in the BASS template:

player.Walk(140,143, eBlock);
player.Say("");

This code does not work for me because the player is blocked until he reaches the hotspot.

Thanks for the help!
Title: Re: Verbs.MovePlayer in BASS Template
Post by: Khris on Sat 25/02/2023 14:35:37
You can use my module for this:

https://www.adventuregamestudio.co.uk/forums/beginners-technical-questions/graphicalfunctional-questions-for-cmi-style-guiinventorymenus/msg636639852/#msg636639852
Title: Re: Verbs.MovePlayer in BASS Template
Post by: Carles on Sat 25/02/2023 14:45:29
Thanks, I'll try it.