1 decade ago by congwang0517
If I define a variable like this in index.html:
<script>
var obj1 = {x:100,y:100};
<script>
I want to use obj1 in impactjs. e.g.
var entity1 = this.spawnEntity(EntityM, 300,300);
How to assign obj1.x to the entity.pos.x?
Thanks for any help!
<script>
var obj1 = {x:100,y:100};
<script>
I want to use obj1 in impactjs. e.g.
var entity1 = this.spawnEntity(EntityM, 300,300);
How to assign obj1.x to the entity.pos.x?
Thanks for any help!