director error module credits must have a new function

2 replies [Last post]
brandonbuffa2010
User offline. Last seen 31 weeks 1 day 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
http://i41.tinypic.com/1ika2x.jpg

Replies

Satheesh
User offline. Last seen 1 day 8 hours 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

jorsh3737
User offline. Last seen 30 weeks 4 days 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.