director error module credits must have a new function

2 replies [Last post]
User offline. Last seen 1 year 42 weeks ago. Offline
Joined: 28 Jan 2012

Hello, I got an error while trying to director a button to go to my credits scene, it says Director Error, Module "credits" must have a new () function. Now, I've been using the same way to set up all of my menus and now its not working, for some reason, It only gives me the error when trying to go to the credits.lua file. Does anybody know the reason for this?

Here is a link to an image of the error I received


User offline. Last seen 21 weeks 3 days ago. Offline
Joined: 25 May 2011

This is probably because "credits" refers to Super Rewards' virtual currency library.. which is also credits..
Just use some other name

User offline. Last seen 1 year 41 weeks ago. Offline
Joined: 2 May 2011

you are right. this worked for me. just renamed the credits.lua file and it was fine

Viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.