its the same as normal collision, but i think you put spcol in like DISPLAY 1
SPCOL ()
DISPLAY 0
but theres honestly nothing different than normal ones.
touch screen buttons are different though
There are two ways:
1.
Make a sprite that follow the touch event(TOUCH out TT,TX,TY) and has the propertie to collide with other sprites.
2.
Get the properties of the sprite with "spchr out x,y,w,h,a" and check if the touch event is inside the rectangle formed with x,y,w and h
um... you just make a box on the touch screen using four if statements, im guessing you dont know how to so, start with putting
TOUCH OUT TT,TX,TY
'sets up touchscreen'
then a box like:
IF TX>10 AND TX<50 AND IF TY>10 AND TX<50 THEN (stuff) (for testing i would use a beep to tell if you are touching it as it makes noise)
that hopefully makes sense to you, if not tell me and ill help you again.
By the way, use the parameters of the sprites instead of hard coding the box parameters on the "if" posted by @*J.P.*[P]£. (USE SPCHR to get those parameters)
If your sprite won't be on the middle of the screen(or if the image will change) then you must obtain the parameters and compare them with the coordinates of TOUCH.