kiugetski's Forum Posts

  • Nvm got it to work

    + Asteroid: Is overlapping BulletLaser

    ----+ Asteroid: Pick top instance

    -----> Asteroid: Subtract random(?1?,?10?) from Hp

  • It should be at the bottom of the objects conditions. Make sure that you are on condition events and not actions.

    This particular pick is on the object itself and not system-->pick

    ok tryed it but did not work at all still all asteroid are being mined

  • i dont see the pick top instance

  • the problem is sometime there is 4 of them stacked together

  • when i start my laser

    it reduce the hp of all asteroids it hit how can i fix it

    i just want the one that is on the tip on the laser not all the stack pile of them XD

  • got a way better solution

    + System: On start of layout

    -> System: Set group "Mining" Deactivated

    + Mouse: On Left button Clicked on Asteroid

    + Mouse: Cursor is over Asteroid

    -> System: Set group "Mining" Activated

    -> Audio: Play SFX6 not looping at volume 0 dB (tag "laser-start")

    -> System: Wait 0.11 seconds

    -> Audio: Play LaserLoop2 looping at volume -5 dB (tag "laser-loop")

    + Mouse: [X] Cursor is over Asteroid

    -> System: Set group "Mining" Deactivated

  • On asteroid clicked > start mining

    Mouse cursor is not over asteroid > stop mining

    as a function ?

    or as a finite state machine

  • hey all im making a space game with a mining laser

    now heres what i want to do

    when my mouse is over and i clicked the asteroid i want to start the laser BUT when my mouse exit the asteroid i want to stop the mining laser for good until i redo it is there a way for it ?

  • oh ok so instead of having 2 line with set color its just one now

  • O_o now im lost

    can you make a working c3 project and send it to dropbox ?

    because im working on otherstuff at same time for my game

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hey all since i was on c2 my code was working but then on c3 its not the samething anymore

    how can i reimplement it ???

    https://www.dropbox.com/s/kvlw55q55wbt3 ... .capx?dl=0

    thats the download link

    but i want it for c3 now

    and i know that c3 now use rgb(255,255,255)

    anyone cold remake me a script for c3 ?

  • Not sure if this is what you mean, but hopefully this thread helps.

    youve reposted the exact same link

    my problem isnt that

    im trying to make a life bar and ive showed the script i was using in c2

    the life bar go from green to red

    but since c3 setcolor isnt the same anymore the script must be different too

    so how can i do that

  • but then how can i redo my life bar green to red ...

    it was on c2 but im not using c3

    set the Green color of the HP_Bar wich is parameter 1 so to make a good math its hp / maxhp * 150

    set the Red color of the HP_Bar wich is parameter 0 so to make a good math its 255 (hp / maxhp * 255)

  • awww im so sorry

  • i hope they will fix this effect soon ...

    Red work

    green dont work

    blue dont work