# PlayCanvas Editor Feedback

**URL:** <https://forum.playcanvas.com/t/playcanvas-editor-feedback/616>\
**Category:** Suggestions & Feedback\
**Created:** [March 24, 2015, 4:48pm UTC](https://forum.playcanvas.com/t/playcanvas-editor-feedback/616 "2015-03-24T16:48:40Z")\
**Posts on this page:** 1\
**Showing post:** 97

<div class="post-metadata">

**Author:** ![whydoidoit](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/whydoidoit/32/4630_2.png) [@whydoidoit](https://forum.playcanvas.com/u/whydoidoit)\
**Post date:** [May 30, 2015, 7:01pm UTC](https://forum.playcanvas.com/t/playcanvas-editor-feedback/616/97 "2015-05-30T19:01:54Z")

</div>

> [@dave](#):
>
> Hmm, yes. Looks like it’s not initializing the script attributes properly. I’m taking a look.
> 
> UPDATE: Fixed and deployed, should be working now.

Thanks 😄!

Quite a lot of my project broke with the update - I notice that the method I used to initialize early Javascript functions no longer works. Would be really good to be able to get either a way of running code on startup without the need to create a “script” per se or to be able to specify files to be loaded before any of the other scripts are executed.

For instance my pc.script.create(‘xxx’, function(uuu) {}) now runs before all of my JS is loaded. I’ve got a workaround - but I have a function I would prefer to execute inside that script around my script constructor to create a state machine. This no longer works so I’ve bodged it together by screwing with **proto** but ugly hack.

Before it looked like var MyScript = pc.createStateMachine(function MyScriptConstructor(entity) {});

But that no longer works as the pc.extend isn’t running before the call back to execute the pc.script.create.

---

_[View the full topic](https://forum.playcanvas.com/t/playcanvas-editor-feedback/616)._
