andreluizgollo's Forum Posts

  • Hey guys!

    How can I center 2 objects together when the game is running? I have a number of coins displayed on the first layout of the game, the main menu, but I want it centered, like this:

    How can I configure this so when the player gets lots of coins it doesn't look like this:

    Thannnks!

  • Dude, that worked perfectly! Thank you very much! :)

  • Hey there , thanks for the tips man. I will try this out and post here if I'm succesfull. :)

  • Hey guys! Another day, another doubt :)

    A few days ago a topic I posted here helped me spawn some powerups on my game. Everything worked just fine! But today I implemented another spawn and things went a little weird. I'm gonna show my event sheet and then explain my problem.

    So, as you can see, everytime the "pillar_up" is created, it chooses a number between 1 and 9 and set it on the "spawn_selector" variable. After that, depending on the number selected, something will spawn on the pillar. If it chooses 1, it'll spawn the Bigger Gaps powerup, if it chooses 2, the God Mode powerup, 3 the Slow Time powerup, and any other value (greater or equal to 4) it should spawn the coin. But... sometimes nothing spawns at all. Even though every pillar should have something spawned, sometimes the character passes through like 5 pillars with nothing spawned.

    Any thoughts? :)

    P.S: the game is a side scroller (a flappy bird like game).

  • here is one way of doing that Timer = 0 I'm not sure if this is what you looking for

    https://www.dropbox.com/s/qe14e79f72wnmxp/Timers%20PowerUp2.capx?dl=0

    tarek2 Perfect again, dude! Thanks a lot!

    sizcoz Thanks to you too :)

  • tarek2 Yeeeesss! I did it! It is working, even though I don't quite understand what is going on hahahahaha. But yeah, I was really missing that line. Do you know if there is any way that the timer display the whole numbers with ".0"? Like... right now it goes 4.2 > 4.1 > 4 > 3.9... It kinda bothers me xD

    Anyway, big thanks again dude, you're the best

  • andreluizgollo

    I'm not sure if I understood correctly but is something like this what are you trying to do?

    I use Timers

    https://www.dropbox.com/s/v0gk35eq578h8cf/Timers%20PowerUp.capx?dl=0

    Hey there tarek2! This is exactly what I need! But still I didn't manage to make it work. *inserts face palm*

    I'm gonna show you my event sheet and what I'm trying to do.

    And this is what happens in game:

    But the timer stays on 5! It doesn't change.

  • Hi , glad to see you again answering my doubts xD

    I don't think I followed. The only boolean in the events is "biggergaps_on" which is set to true when the character collides with the powerup and false when the powerup effect ends (this is all configured in other group, not showing in the screenshot I posted). I'm only checking it on the events I posted to differentiate the countdown timer when the player picks the powerup for the first time from when the player already has the powerup.

  • Oh but "biggergaps_timer" is a number variable. Should I use the timer behavior instead?

  • But I am changing the timer value on the second event: System > Subtract 0.1 from biggergaps_timer.

  • Try Construct 3

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

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

    So, I'm creating a side scroller and there are some powerups. When the player pick up a powerup, I want a countdown timer to show onscreen, displaying how long the powerup will last.

    What I've created so far, and didn't work:

    There are basically two events: the first one to create the timer (there's a text object for the number and a sprite to identify which powerup the time refers to) and the second one where I tried to make the timer actually work. Note that the "else" statement in the first event is for, in case the player picks up a powerup it already has, the game doesn't create a second timer on top of the first, just reset the timer for the powerup duration.

    Any thoughts on what I'm doing wrong?

    P.S: I want the timer to display in the format 5.0 > 4.9 > 4.8 > 4.7...

  • OMG it was like the easiest thing ever! It totally worked! I just set the following events:

    Thanks everyone who posted here, I think I used all the tips xD

    Yay I'm so happy right now hahahaha

  • tarek2 You guys are amazing! I'm gonna try and do it. If I'm successful I'll post here xD

  • tarek2 Hey dude, I'm having kind of a hard time on the reference thing. Do you suggest referencing the specific instances using UID, IID...?

  • BlueBidis Thanks dude! I really enjoy pixel art :) I'm glad you liked it!