frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

Multiple power ups are going off at once

edited April 16 in How To
@JR 01 (I have asked for your help a lot lately)
The power ups have a random for which power up but its all the same object but sometimes when you touch it multiple power ups go off and sometimes they don't go on at all!
Check the Player behaviors in the top left and the power up behaviors.
btw its in the actual game
Thanks, for the one millionenth time!
https://flowlab.io/game/view/1107855

Comments

  • edited April 17
    It's because the power ups are sending which one should be on and off to the player when the game starts. Instead, use a number and set it the whatever came out of the random. Send that number to the player to turn on the desired switch. Use a timer of 1, delay 1 for the collision in the player to input for after the switch is on. After that timer, use another with the same settings to turn all the switches off. I haven't tried it myself, but that should solve the problem, but I am confused of why you changed how the power-ups work. I have to ask:

    What happen to the spawner?
    Why are you putting all the power-ups into 1 object?

    Also instead of sending a message to the player, you could attach the power-up on that object instead.
  • @JR 01 i got rid of the spawner because it was really hard to find the power ups and it lagged. I’m sorry I know you spent all the work helping me I really am sorry
  • That's ok, but why put all the power-ups into 1 object?
  • So that I can put them somewhere where the player can get to and so the power ups are random
  • Thanks again @JR 01
  • edited April 17
    Instead of making a new power-up object, you could also just make that object a "power-up placer" and attach the power-up onto it depending on random.
  • @JR 01 I don’t get it
  • You can use the attach behavior to put the power up on top of the object.
  • @JR 01 can you send a picture
  • for the first answer you gave me
  • See anything new about this account? It is still @rcreger , but this is my new Plymouth account!
  • Thanks @Johnny boy , I'm excited to start making more games under the Plymouth Interactive title!

    EDIT: I'll finish A Box before I begin to use this account fully.
  • edited April 19
    You can place things on top of an object by using attachers.
    The bottom part is your methods for moving it.
    2019.04.18-21.06
Sign In or Register to comment.

flowlab.io

| make games in your browser
@ 2017 Flowlab.io, All rights reserved.

Contact us

Get In Touch