Discord
Login
Community
DARK THEME

How to add distance so that if a character is in a set area they can press C to activate different dialogues.

Hello, I dont want to change my program to much and have two variables, X, and Y, how can I get it so when "JH" - Dialogue and house = true and when a characters in a certain area, dialogue pops up?

if keyboard.Z then money +=2 end if keyboard.C then di = true end if dialogue == false then di = false end if di == true and house == true then jh = true elsif di == false then jh = false end if hg == false then dialogue == true end

Thanks

https://microstudio.io/Elon_Studios/americangreed/

Something like this

https://microstudio.dev/i/DanMan97/chat/

distance = sqrt((x_2 - x_1)^2 + (y_2-y_1)^2)

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community