Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Where is my mistake using _mousemovement keywords?
#2
It's exact copy of example what do you think should happen?

Does need _display to stop the bloody blinking Smile

Oh it goes off screen, did you see the next sample in Wiki that fixed that?

Eh here is my fix:
Code: (Select All)
Screen 12
PX = 320: PY = 240 'center position
Do: _Limit 200
    Do While _MouseInput
        mmx = _MouseMovementX
        mmy = _MouseMovementY
        If (PX + mmx) >= 0 And (PX + mmx) <= _Width Then PX = PX + mmx
        If (PY + mmy) >= 0 And (PY + mmy) <= _Height Then PY = PY + mmy
    Loop
    Cls
    Circle (PX, PY), 10, 10
    Locate 1, 1: Print PX, PY
    _Display
Loop Until InKey$ = Chr$(27) 'escape key exit
b = b + ...
Reply


Messages In This Thread
RE: Where is my mistake using _mousemovement keywords? - by bplus - 09-17-2023, 07:33 PM



Users browsing this thread: 2 Guest(s)