Bootfit's Recent Forum Activity

  • I have a 4K portrait game (2160 x 3840) in development and I'm leaving space at the top for banner adverts.

    The current space I've left for the banner advert is 2160 x 338.

    Can anyone let me know what the correct size space to leave for a banner ad on a 4K portrait game?

    Cheers all

  • Guys - really struggling on this. Can anyone help?

    I have the following:

    Global number Charms02Global = 0

    Global number Charms02GlobalCheck = 0

    This breaks down into:

    • Line 2 - If the Score is equal or above 2...
    • Line 3 - If Charms02Global is equal to 0 - then choose a random frame from Charms02 - set the value of Charms02Global to the chosen frame number for Charms02 - set the value of Charms02GlobalCheck to the new number of Charms02Global - make Charms02 and it's chosen frame visible
    • Line 4 - If Charms02Global is not equal to 0 (because it should have had the frame number written to it above) - then take the number from Charms02GlobalCheck and make it the animation from for Charms02 - make Charms02 and it's chosen frame visible

    Line 2 works fine. In line 3 a random frame is chosen and displays, however the frame number doesn't seem to be saving to Charms02Global or Charms02GlobalCheck as in the next round because the Charms02Global is no longer 0, it doesn't run line 3 and goes straight to line 4 - am I using the right action (.AnimationFrameCount) to do this? Or is there another way to write the animation frame to a global variable?

    Thanks.

  • Absolutley brilliant - thank you.

    The blue bar was exactly what I needed. Dropping the values from my project into it made it make sense.

    Thank you 😀

  • You could do:

    timerBar.Width = timer*k

    where k = timerBar.maxWidth/timerStart

    k is a constant and can be calculated once at the start of the layout/round (assuming you're not changing the maximum bar width and the initial timer value on the fly).

    Can you expand on this? Not sure what you mean.

  • I've implemented a timer on my game - just a simple:

    System > Every 1.0 seconds > System > Subtract 1 from Timer

    The timer doesn't start from a fixed time though, I also have events where 5 or 10 seconds are added each round. It all works fine, but I want to replace the countdown text with a bar that decreases in length.

    So each round I'm guessing I have to set the start length of the Timer Bar (1400 pxls) to equal the current start Timer value (whatever it may be) and the end length (0 pxls) to equal the lowest Timer value (0 seconds) and on each tick tween the length of the timer bar.

    In the layout I've given the Timer Bar two variables - one called Full with a value of 100 and one called Empty with a value of 0. Is this the right way to go or is there a way in the events sheet where I can simply tween the length or width from Timer (full time) to Timer 0?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • OK - I have a number of events that happen On start of Layout, but when the user loses all of their lives the global variables are reset and so all of the events of On start of Layout are replayed/reset when the user tries again.

    But of those events there are one or two that I only want to happen the very first time the user opens the app.

    How do I separate the two sets of events?

  • Anyone have any ideas on how to set the Global Number for Charms02global to the animation frame number for Charms02?

  • I've changed the names of the Sprites to Charms - so I've currently got:

    Global number Charms02global = 1000

    So if the score = 2 and the Global number of Charms02global = 1000 then choose a random sprite frame.

    Then the system should set the Global number of Charms02global to the random animation frame.

    Then when the score = 2 the Global number of Charms02global should be not equal to 1000 but be equal to the random frame number so display that frame.

    But it displays the frame for the first time Score = 2 - but after that the ? event displays just the first frame of the sprite.

    Any ideas?

  • Looks like the remote preview is only available if the QR Code window is still open.

    Can an administrator confirm this?

  • I've shared a remote preview of my game with a couple of friend to get feedback - they're now sharing with their other friends which is something i don't want.

    Is there a way to cancel the remote preview URL so it can no longer be accessed or is it a case of once it's out there it's out there?

  • Use a global variable.

    Set the random value (0 to 5) to that global variable.

    When your score is > 2 set the displayed frame to the value of the global variable.

    On start of layout, if score is >2 set the displayed frame to the value of the global variable.

    The global variable value won't change when the layout restarts.

    Can you expand on this?

    I've tried entering choose(0,1,2,3,4) into the associated global variable but it will only let me enter it as a string - will this resolve as a number?

  • Again this makes it pick another random frame once the layout reloads.

    Wonder if I’m better off having one image per sprite.

Bootfit's avatar

Bootfit

Early Adopter

Member since 3 Sep, 2017

Twitter
Bootfit has 2 followers

Trophy Case

  • 7-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

10/44
How to earn trophies