Display XY Position of Spawned gridsquare

DesBDesB Member Posts: 39
edited November -1 in Working with GS (Mac)
Please help, new to this wonderful stuff.....I have downloaded the "trapfinder'' project. How do I get to display the current XY co-ordinates of the "gridsquare" on the screen?

DesB

Comments

  • MotherHooseMotherHoose Member Posts: 2,456
    As I most always use x,y defined for placement in my stuff; in all my new programs, I have an actor called X and one called Y
    ...their behaviors are just Display Text with the expression game.Mouse.Position.X (or Y)

    you have to select the expression not type it in:
    Expression Editor--Left Down Arrow--Devices--Mouse--Position
    Place these actors anywhere on scene comfortable for you to work with in your program.

    Then I have a big red crosshair gfx that drags with the mouse...so when that is centered over an object the X and Y text display the position; and usually you want to just work with the x&y, though in one program I actually used this to measure an area for a hot-spot touch area. You won't need a crosshair, if all you need is a close approximation.

    MH
  • DesBDesB Member Posts: 39
    Thanks very much MH......you are a STAR !
    DesB
  • DesBDesB Member Posts: 39
    Hi there MH
    Sorry to be a nuisance, but I have not been able to get your instructions to work.
    I am not sure what I am missing....maybe leaving out a critical step?
    Would appreciate your help....many thanks
    DesB
Sign In or Register to comment.