Log In  

Click the yellow thing in the bottom left

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

P#118350 2022-10-02 04:15 ( Edited 2022-10-02 19:18)

1

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

P#118354 2022-10-02 07:13 ( Edited 2022-10-02 07:14)

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
P#118358 2022-10-02 12:06
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)
P#118362 2022-10-02 13:30

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-19 13:58:55 | 0.049s | Q:19