TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
How To Create A Custom Class In Haxe?
Pages:
1
How To Create A Custom Class In Haxe?
playtheHnote
Posts: 395
September 27, 2015, 02:12:48 am
As you can see by the silly coding image below I'm obviously used to coding in C# but how would I do this In Haxe???
Thanks
Check out my instrumental rock album "Hail to the Chosen One" at:
https://soundcloud.com/play-the-h-note
Visit my facebook page @
https://www.facebook.com/justin.shellhorn.1
"Sound King" now available at the forge see
http://community.stencyl.com/index.php/topic,35672.0.html
for more info!
Justin
Posts: 4634
September 27, 2015, 03:15:02 am
Don't make a scene or actor behavior, use freeform code.
For Live Support
: Join our
discord
server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)
playtheHnote
Posts: 395
September 27, 2015, 03:32:38 am
Awesome Thanks, man! So the rest of my code would be fine otherwise?
Check out my instrumental rock album "Hail to the Chosen One" at:
https://soundcloud.com/play-the-h-note
Visit my facebook page @
https://www.facebook.com/justin.shellhorn.1
"Sound King" now available at the forge see
http://community.stencyl.com/index.php/topic,35672.0.html
for more info!
Justin
Posts: 4634
September 27, 2015, 04:08:39 am
You won't need public static for your class
Class name has to start with an uppercase letter
<Dynamic> is Dynamic
"public" should be "public var" for your variables
the constructor should be "public function new" (the function name is "new", not the name of the class.)
For Live Support
: Join our
discord
server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)
playtheHnote
Posts: 395
September 27, 2015, 08:41:11 am
That makes sense thanks again
Check out my instrumental rock album "Hail to the Chosen One" at:
https://soundcloud.com/play-the-h-note
Visit my facebook page @
https://www.facebook.com/justin.shellhorn.1
"Sound King" now available at the forge see
http://community.stencyl.com/index.php/topic,35672.0.html
for more info!
Pages:
1