LevelUpJordan's Recent Forum Activity

  • Hey! Do you mean so that there's an amount of time between shots or there is a limit on the quantity fired?

    Basically do you mean a reload time or ammo?

  • Yes! Exactly that, sprite.Y+(300/30*dt) will move 300 in 30 seconds

    We can use the same logic for this second problem. The distance moved is (distance/time*dt), in this case 5/0.2*dt which is equal to 25*dt, so if it's still moving downwards we would use sprite.Y+(25*dt).

  • So I'm making a platformer/bullet hell type game with loadout customisation (think Luftrausers), here is the prototype's artless capx: https://www.dropbox.com/s/enepa24ikhhnp ... Thing.capx

    You can mess about with loadouts by setting variables to 1 on the event sheet

    On my laptop it seems to chug as enemies spawn but I'm not sure if it is my iffy at best laptop or inefficient programming. I'd therefore appreciate hearing how it runs for you.

    Thanks!

  • If in 60 seconds you wanted to move 300 pixels the equation you want is sprite.Y + (300/60*dt) = sprite.Y + (5*dt)

    dt is the time that has passed since the last frame so in 1 second the sum of dt will equal 1

    Does that make sense?

  • As a side note, if people who download it could check how it runs (so I know if there is an issue or not) that would be fantastic. Thanks!

  • The way I currently do it is by making them platformers but with 0 gravity, this works better for me as the height they fly at isn't constant. I think the issue is too many platform behaviors anyway. But thanks for the suggestion

  • Okay, I'd use a variable here, I'll be using "CanUsePowerUp" which starts at 0

    X is how long the power should be active

    Events: On power up activated

    CanUsePowerUp=0

    Actions: Set CanUsePowerUp to 1

    Set max speed to self.platform.maxspeed+50

    Wait X Seconds

    Set max speed to self.platform.maxspeed-50

    Wait 20-X seconds

    Set CanUsePowerUp to 0

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ha, Thanks! If you just make loads of little games as practice (I have like 14) you tend to just pick things up as you go along

    Oh yeah, and if ever you need any help and don't get an answer here feel free to PM. (I'm not often in this forum)

  • Try this:

    On power up used: set max speed to player.platform.maxspeed+50

    wait X seconds

    set max speed to player.platform.maxspeed-50

  • No problem, I think we're all constantly learning how to do new stuff in Construct.

    Okay, change the action to set text: int(player.platform.speed)

    int rounds down the number in brackets

  • Hmmm, I just tested it and it works for me. Does it look just like this: https://www.dropbox.com/s/bydpaq7iubmfdwf/Untitled.png

    If you want you can upload the capx???

  • Every Tick: Set text: player.platform.speed (With no quotation marks!!!!)

    Should work fine

LevelUpJordan's avatar

LevelUpJordan

Member since 12 Mar, 2013

Twitter
LevelUpJordan has 1 followers

Trophy Case

  • 11-Year Club
  • Popular Game One of your games has over 1,000 players
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies