phaser coder

11 posts (showing 1-11)
pranadevil

Market Level 0Community Level 3
133 posts

hi everyone,

does anybody worked with phaser?

got some doubts

posted 2016-05-25T13:13:13-07:00
stupidlikeafox

Market Level 6Community Level 7
999 posts

We use it all the time. A couple weird things, but for little stuff it works perfectly!

posted 2016-05-25T20:33:58-07:00
pranadevil

Market Level 0Community Level 3
133 posts

do you know how to kill or destroy a bitmapdata?

posted 2016-05-25T23:48:13-07:00
stupidlikeafox

Market Level 6Community Level 7
999 posts

Na, never needed to. I keep things pretty simple :P

posted 2016-05-26T08:24:49-07:00
o0Corps0o

Market Level 5Community Level 4
437 posts

could you not just clear it?

bData = game.add.bitmapData(100, 100);
bitmap = game.add.sprite(0, 0, bData);

and use:

bData.clear();


Dunno if that helps?

posted 2016-05-26T13:06:28-07:00
pranadevil

Market Level 0Community Level 3
133 posts

o0Corps0o said:

could you not just clear it?

bData = game.add.bitmapData(100, 100);
bitmap = game.add.sprite(0, 0, bData);

and use:

bData.clear();


Dunno if that helps?

yes i read about it and thats the way! lol

also it says that is very expensive in resources :S

posted 2016-05-26T18:25:23-07:00
FGL_Dave

FGL AdminCommunity Level 4
318 posts

pranadevil said:

o0Corps0o said:

could you not just clear it?

bData = game.add.bitmapData(100, 100);
bitmap = game.add.sprite(0, 0, bData);

and use:

bData.clear();


Dunno if that helps?

yes i read about it and thats the way! lol

also it says that is very expensive in resources :S

These things are all relative; premature optimization is the root of all evil. Make your game, then figure out if you need to cut down on things like BitmapData usage :)

posted 2016-05-26T18:30:55-07:00
pranadevil

Market Level 0Community Level 3
133 posts

FGL_Dave said:

pranadevil said:

o0Corps0o said:

could you not just clear it?

bData = game.add.bitmapData(100, 100);
bitmap = game.add.sprite(0, 0, bData);

and use:

bData.clear();


Dunno if that helps?

yes i read about it and thats the way! lol

also it says that is very expensive in resources :S

These things are all relative; premature optimization is the root of all evil. Make your game, then figure out if you need to cut down on things like BitmapData usage :)

thnks man

posted 2016-05-26T19:25:59-07:00
Ultima2876

Market Level 4Community Level 10
2410 posts

How are you getting on? Have you finished your first game yet? :)

posted 2016-07-04T23:38:53-07:00
pranadevil

Market Level 0Community Level 3
133 posts

On Jul 04, 2016, Ultima2876 said:

How are you getting on? Have you finished your first game yet? :)

yep.

posted 2016-07-05T19:42:14-07:00
pranadevil

Market Level 0Community Level 3
133 posts

does anyone know how to cut / slice a bitmap using the mouse?

posted 2016-08-19T20:08:38-07:00