abi>>forums

abi>>forums (http://www.anythingbutipod.com/forum/index.php)
-   Zen X-Fi2 Applications & Development (http://www.anythingbutipod.com/forum/forumdisplay.php?f=221)
-   -   Wubly2 (dev thread) (http://www.anythingbutipod.com/forum/showthread.php?t=56806)

Shackles 08-09-2010 08:59 AM

Wubly2 (dev thread)
 
5 Attachment(s)
Delete.

Shackles 08-09-2010 09:02 AM

Urgh, im having a problem with the homebutton. When i press it it come up with
Quote:

c:\Creative\ZEN X-Fi2\Applications\Wubly2\main.lua:116: attempt to call field 'click' (a nil value)
Lua Run Error : attempt to call field 'click' (a nil value)
I have no idea why it does this? Also line 116 is here:

elseif (control.isButton() == 1) and (button.click() == 1) then

Habhome 08-09-2010 09:13 AM

Quote:

Originally Posted by Shackles (Post 489761)
Urgh, im having a problem with the homebutton. When i press it it come up with

I have no idea why it does this? Also line 116 is here:

elseif (control.isButton() == 1) and (button.click() == 1) then

Do you have a variable or function named click? I have experienced similar problems caused by such things.

jbob182 08-09-2010 10:03 AM

yes habhome is right you can NOT use click() i found where too look at line 115 in main and 239 in function

Shackles 08-09-2010 10:17 AM

It didnt work! I changed it to screenClick and it came up with the same error. I did also try to change it to screenTap and it still came up with the same error (I changed everything with click() in it). Its also strange, it have never done this before. First when i added a table to it.

Habhome 08-09-2010 10:18 AM

Quote:

Originally Posted by Shackles (Post 489785)
It didnt work! I changed it to screenClick and it came up with the same error. I did also try to change it to screenTap and it still came up with the same error (I changed everything with click() in it). Its also strange, it have never done this before. First when i added a table to it.

Odd, I'll take a closer look at it when I get back from training, don't have time right now.

Brett_val 08-09-2010 11:05 AM

The error is about calling a field that doesn't exist, so there must be a table named button.
Naming something "click" wouldn't harm in this case.

Shackles 08-09-2010 12:06 PM

That worked, thanks!

Habhome 08-09-2010 01:05 PM

Quote:

Originally Posted by Brett_val (Post 489805)
The error is about calling a field that doesn't exist, so there must be a table named button.
Naming something "click" wouldn't harm in this case.

Ah, I see. Should've caught that. I blame me being sick for not realizing =P

Shackles 08-11-2010 02:24 PM

Updated, would a nice soul look through the code and give me some advice?
Also i have no idea about how to make the hookshot that should work like this:

It shoots a hookshot in the pressed direction and when it hits a square,
it checks if it can grab it, if yes wubly should be pulled too it

alexvilla 03-06-2011 02:56 AM

Please, tell me how it worked??? I don't understand how to play. :)

Habhome 03-06-2011 04:14 AM

I am not sure if this game is playable yet, haven't tried it I think since dev seems to have ceased.

Nediam Nori 06-28-2011 02:19 PM

i don't know how to play it...

jameswalker101 06-28-2011 02:51 PM

the code may help with my mario platformer! thanks!

And I can't play the game online, cant find it on the website. Could you provide a direct link to the online game?


All times are GMT -5. The time now is 05:35 PM.