yodason45's Forum Posts

  • It's still showing the current score without adding the old one.

    The current score is a global variable, is that the reason?!

  • Hi,

    I'm using webstorage to save the total score, but whenever I switch between layouts it either reverts back to 0, or it takes in only the new score without adding in the previous total score.

    The conditions are when the player collides with a coin object, it destroys said object and adds variables for 2 local variables. 1 is the new the score which displays separately, and 1 is the what will get saved using webstorage.

    When the player is dead/destroyed, the new score gets saved, 'Set local Key 'TotalScore' to Score.Total.'

    When I switch layouts, I have a condition that states at the start of the layout to set a text object to 'WebStorage.LocalValue("TotalScore").

    Am I doing something wrong?

    Any help?

  • Can nobody help me with this?! Please?!

  • I'm currently working on an endless runner game, and I am looking for for a scroll-able sprite button plugin or perhaps another way to do something like that for the upgrades menu.

    I need the upgrades list to be scroll-able. I tried using the iScroll plugin, but it for some reason it would always be on top hiding the layer above it.

    Is there a way I can do this? I really need this.

    Thanks.

  • Jonsterz:

    You were right, the text object wasn't big enough to display it.

    But apparently it wasn't big enough because my figure is going into ".123456".

    Eg. Upon collecting CASH, it goes to a random no. like "4" but with ".468828" added to it, making it "4.468828".

    Why am I getting the decimal with the digits after. I don't want those.

    Is there a way to just round up the number? Rather than it to show up something like this "4.2486224"?

    Please help?!

    Thanks!!

  • Jonsterz:

    Thank you, the Global Variable worked!!

    Just one more thing, since I really don't want to make a new post for it:

    How do I randomize a Instance Variable?

    I have a "Cash drop" that I want to be random. So whenever the player picks it up, it'll be a random number anywhere from 0 - 10.

    I tried random(0, 10) but then the "text object" I use to display it goes blank.

    Global Variable again?!

    Please help.

    Thanks!!

  • Hi,

    I'm currently developing a game, where in the enemy upon bullet impact suffers a particular amount of damage. I added a power up which would increase the bullet's damage via Instance Variables.

    Now, I want the bullets damage to be added upon the original damage.

    How do I do so?!

    I've tried:

    Subtract from:

    10 + (Bullet.DMG)

    {10 here is the original damage, and Bullet.DMG is whatever gets increased)

    Is this right?! 'Cuz it ain't working.

    Thanks.

  • Hi,

    When I first started making my game, I used to get good frame rates.

    Now all of a sudden, my frame rates are dropping down to 18?!

    Can someone tell me why and when do frame rates drop?!

    Is it due to the objects in the level?! or on screen?! or is it something totally different?!

    Thanks!!

  • oh, dang, i don't have math in my system. i forgot to mention, I'm using a older version of Construct. The new one doesn't work properly!!

    EDIT: nevermind, i figured out another way!!

  • um, where do i find random?! i mean, is it in system?! or......?!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    I'm making a top down shooter, and i've created this object to act as a box of items. When clicked the box will open to reveal a random powerup.

    I currently have two.

    Question is: how do I get it to be random(either powerup a, or powerup b)??

    Thanks a million!!

  • Oh, Hey that helped!!

    Thanks alot you guys!!

  • um, how do i post my .cap?!

    EDIT:- http://rapidshare.com/files/454351637/your.cap

  • Um, its at the bottom right, but it is inside the layout border(window outline). I kept it at the bottom cuz my game starts from bottom, then proceeds upwards.

    Also, I'm creating a new health icon!! restarting Construct didn't help!!

    Please, someone, HELP ME!!

  • Yup, its on the top most layer!! scroll rate x/y is 0%!! what im i doing wrong??

    also, when i copied my HUD to the new layer, something went wrong.

    "error in private variables! the selected object has 0 variables, but the selected instance has 1. please report this bug to scirra" its my health sprite. its gone. it doesn't take any damage too!!

    any idea what to do?! other than remaking the object?!