Posted: 16th Nov 2022 19:46
Ok so I am trying to grab the negitive y on my phone.

It works on my pc for a negitive grab for my pointer but not on my phone.

PointerY#=GetPointerY()

PointerY#>-20

Works on my laptop but not on my phone.
Posted: 16th Nov 2022 21:29
a couple of things to unpack here

GetPointerX/Y is a generic wrapper function and although has basic functionally on mobile you will run into problems

on desktop the pointer is a physical item that always has a position, mobile has no pointer, it is physically impossible for the pointer to be negative on a phone, the touch screen registers input in its area and this info is send to GetPointerX/Y, negative -20 means your finger missed the screen
Posted: 16th Nov 2022 23:51
it is physically impossible for the pointer to be negative on a phone


Ok, Good to know, thank you, Not I know I can not go yo high in my levels.
Posted: 17th Nov 2022 0:27
Well you can, if you move the scene with SetViewOffset the world y will be less than 0 but you need to employ the proper mechanics to determined mouse position or click/tap position, especially on mobile

please note ....



so if your last tap was at 100x100 and you call GetPointerX it will return 100 on mobile and the mouse x position on desktop .... its not that you cant go y high you just have to use the correct functionally IE: (GetRawTouchLastX/Y and WorldToScreenX/Y and ScreenToWorldX/Y)

Touch positions are in screen coordinates and sprite positions in world coordinates, you need to take this into account when using a world area bigger than or outside of the screen area
Posted: 17th Nov 2022 2:48
so if your last tap was at 100x100 and you call GetPointerX it will return 100 on mobile and the mouse x position on desktop .... its not that you cant go y high you just have to use the correct functionally IE: (GetRawTouchLastX/Y and WorldToScreenX/Y and ScreenToWorldX/Y)


Way to much extra work.

After months and months of work on this , well, no thanks. ha ha.
Posted: 17th Nov 2022 2:56
Remember this?

Two years ago and took a long time

Well i have a well put together game now. I will show it soon.