How to show X coordinates

Help for a game I’m making

Use a player coordinate device, have it set a property, then have the property broadcast on a channel that runs a game overlay block, and in the code to set text to the x position.

Also this should be in Help

2 Likes

How dose that work… idk… im sorry…

Add a property, make sure its a number and player scoped, then in the player coordinates device, set Update Properties setting to yes, then use the property in the X Position Property setting.

1 Like

Please don’t show game codes or share the game name. It’s considered advertising and game codes arn’t allowed in general.

okay, i took it down

could you make a screenshot. im still confused :thinking:

I keep on trying on what you said but i keep losing track.

uh anyway back to typing


Place a coordinates device. In the settings, link the x-value to a property. Call this property “x”. Place a property device. Name it the same as the property in the coordinates device. The property type should be a number, and broadcast on a channel when the property value has changed. (Scroll down to see this setting. I recommend calling the channel “coordinates changed” or something.)

Now run block code in an overlay to show the value, and it’s ran whenever is receives the channel from the property.

image

2 Likes

Property:

Player coordinates:

And make the code that Slim used in the overlay when receiving on Update x

4 Likes

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.