cornelg7's Forum Posts

  • I think this should work. Player -> On collision with another object -> powerup, is the main condition, and after, for every powerup should have the condition like this: powerup -> Is playing -> powerup0/powerup1/powerup2/... What I did was to change the animation of the Player, you can do whatever you want

    Something else, in the animation list of the powerup, I modified the animation powerup to powerup0.

  • Told you. Change the "powerup0" to "powerup". Check this .capx, is the exact same thing that you sent, just that little modification. But that thing with the families is cool too, I'm new and didn't knew that

  • Umm... No one?

  • I think I am stupid, it is not working for me, please see attached how I have done it with two different setups

    In your photos, you create object powerup0 & powerubnumber that means that you'll create objects like powerup00, powerup01, powerup02, ...., and that's not what you want, you want only powerup & powerupnumber so it'll be powerup0, powerup1, powerup2, ... the only thing is that the initial value of powerupnumber should be 0. Then, you have to set it's value to (powerupnumber+1)%(how many animations do you have), so in your pictures should be 3.

    If you still have any problems, post your .capx please

    L. Edit: Only the setup where you have 3 different animations is good. The other one where you have 3 different frames isn't going to work.

  • Ok now, I'm interested how you did it, can you explain a little?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Can you upload the .capx file so we can take a better look at everything?

  • Ok, waiting for feedbacks now

  • You don't need different sprites for every power-up. You can use only one sprite named powerup and make the different power-ups different animations (first power-up should be with animation name of powerup0). Then it's easy to do what you want:

    First thing first, create a global variable named powerupnumber (set initial value to 0). Then:

    System -> Every 60 seconds:

    • System -> Create object -> powerup (set X and Y)
    • powerup -> Set Animation -> "powerup" & powerupnumber
    • System -> Set value -> powerupnumber to (powerupnumber+1)%6

    Let me know if you get stuck again

  • Omg... This is epic!

  • Looks nice, but that boss killed me... Anyway, maybe it would look better if you use bullets? When shooting, spawn bullet, when bullet reach enemy, destroy enemy.

  • A0Nasser already put a new action there, Player -> Set collision enabled -> Disable, that is disabling any collision with the player and he fall through anything...

  • Ok, thank you... I'll try it later, if I have any more question I'll post here

  • Hello everyone!

    Ok so, I have a square. A color X one. I want to change its color to color Y, without having to create a different animation with the exact square with color Y. And if it's possible, I want it to transform from color X to color Y like a loading bar, starting from the left, and going to the right. Something like in the attached picture. I repeat, I don't want to create different animations for every transformation from color X to color Y...

  • Well, I have only ~a week on Construct, I don't know what do you refer with "-change UI_life->Frame", but:

    Player -> On collision with another Object -> Lava:

    • to make player jump a little: Player -> Set vector Y -> -300 (you can try a smaller or a bigger value, but it need to be negative)
    • to make player flash: add behavior "Flash" to player and then, Player -> Flash -> (select the duration, depends on how you like it)
    • fall again: he'll fall automatically, no need to change the vector again

    Hope I could help

    Edit:

    Oh, and add a System -> Wait -> (seconds), after the above events and before the System -> Restart Layout.

  • Thank you... I posted it in the Completed list, but I still need some reputation to post the link to it