Impact

54 Posts, registered 1 decade ago

Contact

Send an email to congwang0517

Recent Posts

1 decade ago in why ig.image have not flip property?:

i want to turn over a image,how to do it?

1 decade ago in how to resize entity's size?:

if i want to resize a entity's size by it's 80%,what i should do?

1 decade ago in entity's animeSheet how to use canvas.toDataURL()'s image?:

it has been solved. window.animSheet1 = new Image(); window.animSheet1.src = …

1 decade ago in entity's animeSheet how to use canvas.toDataURL()'s image?:

the canvas.toDataURL()'s image is like this:data:image/png;base 64,asdfadf…

1 decade ago in impactjs suport bone animation?:

is it has any bone animation API?

1 decade ago in how to change a entity's animSheet?:

I try to " entity.animSheet = new ig.AnimationSheet..." and entity.a…

1 decade ago in entity click event:

impactjs has entity click event? must I write a plugin?

1 decade ago in how to kill all the entities?:

is this right? var ents = ig.game.entities; var len = ents.length; …

1 decade ago in How to let entity invisible ?(not kill):

""_Quote from dominic_ Set the entites #.currentAnim# to #null#.&quo…

1 decade ago in How to let entity invisible ?(not kill):

I know a stupid way: pos.x = pos.y = -10000;

1 decade ago in How to let entity invisible ?(not kill):

i don't want to kill the entity,just let it can't be see.

1 decade ago in How to detect entity dragged?:

in main.js , init(), define mousePressed: {x:0,y:0}, when you click, assign the…

1 decade ago in How to destory a timer?:

I newed a timer,when the delta()>0 ,I want to destory the timer . How to do …

1 decade ago in Click-through problem:

I have a method to solve the problem. The precondition is useing sortEntities()…

1 decade ago in Click-through problem:

I refer to Graphikos's code ,wrote a click plugin about entity click .But…

1 decade ago in I writed "whether entity is clicked" function which need to be improved:

The Click-through problem hasn't been resolved. Could anyone help? Than…

1 decade ago in how to get the mouseup event?:

ig.input.bind(ig.KEY.MOUSE1, 'mouseLeft'); ig.input.pressed('mou…

1 decade ago in How to scroll the game's screen on phone?:

I tryed this code: ## if(ig.input.state('mouseLeft')) { if(thi…

1 decade ago in How to scroll the game's screen on phone?:

But it also has a problem.It's can't work when I set the boundary. ##…

1 decade ago in How to scroll the game's screen on phone?:

Thanks Graphikos. The link you have given is very helpful to me.

1 decade ago in How to scroll the game's screen on phone?:

Is there any class to achieve the function? I use finger to scroll the game…

1 decade ago in can't see ctx.fillRect() when I draw a background image:

I have a background image 500*300. I code that "this.background.draw(0, 0)…

1 decade ago in a problem in update() in main.js:

my code: ## update : function() { switch(this.scene){ case 0: th…

1 decade ago in I writed "whether entity is clicked" function which need to be improved:

the code is below: ## init : function() { ig.input.bind(ig.KEY.MOUSE…

1 decade ago in mouse or keyboard event in update():

Thanks, the reason is I just think game as website. So i was confused why impa…

1 decade ago in mouse or keyboard event in update():

I think the event in update() is inefficient. Because user may triger a event …

1 decade ago in Non-square tiles in Weltmeister?:

I hope not only the tile map but also the images map in Weltmeister

1 decade ago in a mouse event problem:

while the mouse button down and moving. Once mouse button up or stop move,the m…

1 decade ago in a mouse event problem:

just mouse.y. OK,Arantor .I tell the game itself. It's about a building wi…

1 decade ago in a mouse event problem:

OK, Arantor. My English is poor ,and I am hard to express my thought exactly in…