Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Error
Started by ConveyedRex7592 Mar 20 2020 05:05 AM

1 reply to this topic
joystick error plugin typlersjoystick

Best Answer XeduR @Spyric , 20 March 2020 - 08:33 AM

I would expect there to be a better way to hide your joystick. Still, the reason why you are getting that error is because of what you are trying to pass to the function. All you need is: Joystick.setCoords( 10, 1000 )

 

Adding those "x: 10" isn't how you pass parameters to functions in Lua, you just insert the value.

 

And also, try to come up with more descriptive titles for your posts. :P

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

ConveyedRex7592

[GLOBAL: userInfoPane.html]
ConveyedRex7592
  • Enthusiast

  • 38 posts
  • Corona SDK

Hello,

 

I'm trying to hide the joystick, but instead I get an error.

I am using plugin "Typler's Joystick"

I tried that:

 

Joystick.setCoords(x: 10,y: 1000)

Attached Files



[TOPIC: post.html]
#2

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Corona Geek

  • 1,246 posts
  • Corona SDK

  Best Answer

I would expect there to be a better way to hide your joystick. Still, the reason why you are getting that error is because of what you are trying to pass to the function. All you need is: Joystick.setCoords( 10, 1000 )

 

Adding those "x: 10" isn't how you pass parameters to functions in Lua, you just insert the value.

 

And also, try to come up with more descriptive titles for your posts. :P


  • pixec likes this


[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: joystick, error, plugin, typlersjoystick