Log In  


Click the yellow thing in the bottom left

Cart #mewumoruzu-4 | 2022-10-02 | Code ▽ | Embed ▽ | No License
2

2


1

Wow, I was just starting on making a new version of my own Picos! Amazing timing!


You should try POKE(0X5F2D, 1), because then you can:

FUNCTION _INIT()
 POKE(0X5F2D, 1)
END

FUNCTION _UPDATE()
 MX = STAT(32)
 MY = STAT(33)
 MC = STAT(34)
END

FUNCTION _DRAW()
 CLS()

 IF MC == 0 THEN
  SPR(POINTER,MX,MY)
 ELSEIF MC == 1 THEN
  SPR(CLICK,MX,MY)
 END
END

1

Hi @StarryPen:

Some more advice if you find it helpful, you can change all this:

if y<0 then
  y=0
 end
 if y>120 then
  y=120
 end

 if x<0 then
  x=0
 end
 if x>120 then
  x=120
 end

To this:

x=mid(0,x,120)
y=mid(0,y,120)


[Please log in to post a comment]