deepnight / gameBase

Base structure for my games, using Heaps framework and Haxe language.
https://deepnight.net
MIT License
614 stars 152 forks source link

How to remove the green square in the game base sample #32

Closed harshetmaruff closed 3 years ago

harshetmaruff commented 3 years ago

Hey deepnight I followed your tutorial which was in deepnight.net . Which is crating the hero but I see a small green square. How to remove it

enumm commented 3 years ago

That's a placeholder texture. You need to set entity image.

harshetmaruff commented 3 years ago

That's a placeholder texture. You need to set entity image.

How to do that ???

I actually did that like this

g = h2d.Graphics(spr); g.beginTileFill(0,0,0.5,0.5,heroimg); g.draw(0,0,heroimg.width,heroimg.height);

harshetmaruff commented 3 years ago

Yes found it spr.setTexture(heroimg)