Heys guys I need your help. I think this is easy but unfortunately I don’t know.
How can I set the images of the game on the screen? How can I know the exact localization?
I have a sky (background), a weapon and some ballons, but one is over the other.
this is my Entity class:
package { import net.flashpunk.Entity; import net.flashpunk.utils.Input; import net.flashpunk.graphics.Image; import net.flashpunk.FP;
public class MyEntity extends Entity
{
//[Embed(source = 'Graphs/sky.png')] private const SKYY:Class;// the name sky can be differente
[Embed(source = 'Graphs/arma.png')] private const ARMA:Class; //arma constructor
//[Embed(source = 'Graphs/ballon.png')] private const BALLON:Class;
public function MyEntity()
{
//graphic = new Image(BALLON);
graphic = new Image(ARMA);
}
override public function update():void
{
y = Input.mouseY; //get the mouse position
y = FP.world.mouseY;// pega so as coordenadas verticais
}
}
}