help!

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
yeroc64
Prole
Posts: 3
Joined: Sun Dec 19, 2021 4:57 am

help!

Post by yeroc64 »

help how to fix the code!
mouse.love
the file (11.3)
(939 Bytes) Downloaded 441 times

Code: Select all

Error

main.lua:17: bad argument #1 to 'setCursor' (Cursor expected, got string)


Traceback

[C]: in function 'setCursor'
main.lua:17: in function <main.lua:14>
[C]: in function 'xpcall'
User avatar
veethree
Inner party member
Posts: 877
Joined: Sat Dec 10, 2011 7:18 pm

Re: help!

Post by veethree »

love.mouse.setCursor(cursor2)

Instead of

love.mouse.setCursor("cursor2")
User avatar
yeroc64
Prole
Posts: 3
Joined: Sun Dec 19, 2021 4:57 am

Re: help!

Post by yeroc64 »

poggers it works
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests