Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Picture Event (Help plz)

So I have been wanting to work with pictures lately to see what I can do with them.
I tested some pictures and.... how do you set up the location of the picture?
I tried going by the maps coordinate but It always ends up in the corner. Please help me out here.
I tried searching in the search engine but I couldn't find anything.
 
pictures are displayed by pixel value, not by tiles. (each tile is 32 pixels, and the screen is 640x480)

The 'Origin' is a point on the picture that you use for reference. All pictures are placed in reference to
their 'upper left corner' or 'center'

The "Position", either defined by a constant x,y value, or using variables, is where the 'origin' point on the
picture will be placed.

So, if you want a picture centered on the screen, set the origin to "Center", and the X,Y to 320, 240

And remember, pictures are displayed on the screen, not the map. So, if you move your player around the map
the picture will stay stationary on the screen.

Be Well
 
I understand that but...what am I trying to say?
lol.
I don't know how to say this but Ill try to explain it.
How are the (X,Y) coordinates set up like?
Say I want it in the center and moved a little to the left.
How do I match it up?
 
The top left of the screen is 0,0.  the bottom right of the screen is 639,479

X goes across the screen from left to right
Y goes down the screen from top to bottom.

so, if you want the picture a little (10 pixels) left of center, set the origin to center, and the X,Y to 310, 240

changing the X value to something smaller will move the picture to the left
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top