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.

Changing Timer`s Location?

In VX in TIMER command


is there anyway to determinate the location where the timer will appear?

thanx from advance guys :wink:
 
I'm going to assume the event command is the same as XP, where you can only set START, STOP, & the amount of time.  So, no you can't control the position from the event command.

The position gets set in the 'initialize' method of Sprite_Timer in the games scripts.

The default position is (544 - self.bitmap.width, 0) or (456, 0).

You can permanently change the position by editing the lines that start with:
self.x =
self.y =

If you have to change them on the fly, it should look something like:

$scene.spriteset.timer_sprite.x = 0
$scene.spriteset.timer_sprite.y = 0

if you want to put it in the upper left corner of the screen

Be Well
 

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