Verbs.MovePlayer in BASS Template [SOLVED]

Started by Carles, Sat 25/02/2023 10:25:21

Previous topic - Next topic

Carles

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:

Code: ags
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:

Code: ags
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!


Carles


SMF spam blocked by CleanTalk