Class <Dialog> has no field doDialogue #2460
Unanswered
NikRetaNCAM
asked this question in
Q&A
Replies: 3 comments 8 replies
-
Make the function static, if you want to call the function directly on a class
|
Beta Was this translation helpful? Give feedback.
2 replies
-
Dialog extends FlxSprite, you don't control FlxSprites by saying FlxSprite.makeGraphic(), right? you create instances and call methods on them, like so: var sprite = new FlxSprite();
sprite.makeGraphic(640, 480 0xbf); The same goes for classes that extend FlxSprite, you create Instances and call functions on the instances: var dialog = new Dialog();
dialog.doDialog(); |
Beta Was this translation helpful? Give feedback.
6 replies
-
@NicklGames Did you manage to fix this problem? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The dialog script (not finished)

The code in MenuState.hx referring to that script

The error

How do i fix the thing???
Beta Was this translation helpful? Give feedback.
All reactions