dreaa's Recent Forum Activity

  • Yeah you have the last version on the link so it's the version with no bug :p.

    But like i've said, i'm wondering if it's possible to do that : (Suppr the shift control and change the ship with just ctrl)

  • BLBLBLBL Working perfectly, thanks guys love u <3

    EDIT : Just wondering, is there a way to put the same control to do the thing. Here i'm using shift + ctrl because using only ctrl is bugging (idk why, it can change only once). It's just to optimize the gameplay, not necessarly at all but it could be nice to fix it

    capx link : drive.google.com/open?id=0B6phdwDtsxJkTXN1RnU3TUYyMDA

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Fixed the first part (with boolean/shoot and stuff, perfectly working.)

    But, I still have a problem with the scoring. I've tried the else stuff and it's very complicated and I don't understand.

    So i've found an other way to do it. I've added variable named state into my laser and my asteroid. So when i want to score I compare the state of the asteroid and laser.

    So, if laser.state = asteroid.state then it adds +2 ; if it's not equal it adds +1. The +1 thing is working but not the +2.

    The good things is, I know why but I doesn't know how to fix it. When I press "shift" or "ctrl" to set the red/blue color to my ship it is supposed to change the animation of my laser and change the color, it works, but in the same event it's supposed to also change the state of my variable (putting 0 or 1 dependings of the ship color) but it's just never change and I don't get why. :/

    There is a screen of my even sheet and my capx there : drive.google.com/open?id=0B6phdwDtsxJkTXN1RnU3TUYyMDA

  • [quote:36touem4]Suggestion would be to have a "ready" instance boolean or something similar.

    Could you tell me a bit more about this ? Like i said i'm a beginner (this is my first real project) and i've never used booleans on construct 2 so i'm kind of lost :p.

    And i'm very intereset of doing the best I can for this project before I have to get it back

    And about the second part, yh i've changed and put the spawn before setting the animation and it works perfectly. Was kinda confused in my mind.

    I tought it was setting the animation (so the colour) and then create the laser so i tought it would have been more efficient that way, should have tried both way x)

    EDIT : The project : drive.google.com/open?id=0B6phdwDtsxJkTXN1RnU3TUYyMDA

    From this i'm wondering a thing because i'm totally lost in the even sheet. I'm doing the scoring so I want to do some conditions like this

    Laser on collision with asteroid
    {
    if (laser.frame=blue&asteroid.frame=blue)
    add score 2
    
    else if (laser.frame=red&asteroid.frame=red)
    add score 2
    
    else 
    add score 1
    }[/code:36touem4]
    
    I know how to do it with code but not in construct 2 so it kinds of bore me and wondering how to do it ?
  • TheDom

    [quote:31071e0u]Keyboard > ESpace is Down

    (sub event) > Every 0.2 seconds > Ship > Spawn Laser

    ( create a second condition)

    Laser > on created > System wait 0.2 seconds

    Destroy Laser

    I'm not understanding this part. Doing a destroy on laser after 0.2 secs is just making my laser pop and destroy it almost right after.

    For the animation it's barely good, it's working (and was such a stupid mistake x) ) but my animation is waaaay smaller than my original sprite, so we barely see it when it explode.

    EDIT 1 : There is no animation problem, I've made it the way you say (haven't saw before ><), by doing a sprite and now working as hell

    -----------------------------

    Yeah the speed sets was a better idea. I don't get why and where I shall uses the loops ? (I'm a total beginner ^^')

    -----------------------------

    clarkkentnicdao

    Kind of helped me since it gave me an idea which is almost working .

    -----------------------------

    For everyone

    First of all there is my capx at this point drive.google.com/open?id=0B6phdwDtsxJkTXN1RnU3TUYyMDA

    Then my update is, i've found the way of putting the right frame so my red ship shoot red laser, same for blue. But the prob here is the last laser shooted is always yellow, no matter how many lasers i shoot the last one (until i shoot again, then it switch to the ship color)

    So i guess that's because i'm setting the animation when i press space right before it spawns like we can see there (for those who don't want to DL my capx)

  • Hello,

    I have some problems concerning animations in construct 2.

    There is my situation : I have a ship than can shoot laser. This ship has 3 colors which represent 3 states : Yellow red and blue. (It's an Ikaruga like for theses who knows).

    Besides this, there is asteroids that are blue or red. So depending on the states of my ship the player gains more or less points.

    Yellow state is 1 point no matter the color of the asteroid.

    Blue stat is 2 for blue asteroid and 0 for red. Reciprocal for red.

    But this isn't my problem (yet, at least). What I want is when the player press "shit" the ship become blue (done) and when i press ctlr the shipe become red (done aswell).

    BUT. On this I have one big problem and maybe something to optimise the gameplay.

    FIRST PROBLEM : The ship become red or blue but the laser is still yellow, no matter what. (In the debug i've saw that the old laser (already shooted) chance states but not the new one).

    So i need to know how to put red or blue for my laser, dependings of the color of my ship (blue for blue / red for red ofc).

    Then for the optimisation i'm wondering if it's possible to push only ctrl to change the color of my ship (tried but ain't working in the way i found).

    There is some screens to make helps easier for you.

    The settings of my frames. Working in the exact same way for the lasers. (frame 0 = red ; frame 1 = yellow ; frame 2 = blue in the same animation)

    And now my event settings. I have the space key to shoot (it stop the animation so it stays yellow at the beginning since my yellow isn't the last frame). And I have the shit / ctrl pressed where i try to treat my ship + laser in the same way, it works for the ship but not for the laser, so i'm quite lost :/

    ---------------------------------------

    EDIT 1 (06/10) :

    I've worked on something else to wait people to answer and i'm like mind fucked.

    I wanted to put an explosion animation so i've added an animation named explosion and putted multiple explosions in frames so this case is settled. I've added it on my event, when my sprite is destroyed it is supposed to play the animation "explosion" like we can see on screen, but when i'm trying to play it, nothing happening, so i'm lost :/

    Thank you very much

dreaa's avatar

dreaa

Member since 29 Sep, 2016

None one is following dreaa yet!

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies