Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Buttons as images
#6
Yes but ifk is not function. It can be used only like if.

Macro Macro1424
Code:
Copy      Help
int leftPressed
ifk((1)) leftPressed=1

if PtInRect(&ra p.x p.y) and leftPressed

or

Code:
Copy      Help
;test
ifk (1)
,int Action
,if PtInRect(&ra p.x p.y)
,,Action=1
,else if PtInRect(&rb p.x p.y)
,,Action=2

or

Macro Macro1431
Code:
Copy      Help
;test
int Action
if PtInRect(&ra p.x p.y) and RealGetKeyState(1)
,Action=1
else if PtInRect(&rb p.x p.y) and RealGetKeyState(1)
,Action=2
else
,Action=0


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)