Dabbijo's Forum Posts

  • Thanks so much!

  • Hey,

    I'm making this little game to teach my self C2.

    dl.dropbox.com/u/26785144/CreateRandom.capx

    Explanation:

    You move the mouse to move the piece and press Space to change its color.

    You have to catch the colored blocks falling from the sky, but to do that you will have to catch it with the right color in the animation.

    What I can't find out is how to create a random object every X seconds?

    The idea I had was to make a global number variable, f.ex "randomObject"

    and make c2 check:

    randomObject = 1 = create Blue

    randomObject = 2 = create Yellow

    randomObject = 3 = create Red

    randomObject = 4 = create Green

    and every X seconds I would set the value of randomObject to random(1,5).

    If I do this, nothing happens.

    And I realize if this would work C2 would create multiple objects.

    I am pretty much stuck. :/

    edit: formatting

  • Understood sir :)

  • e again entertaining throughout the eventide comprehending also contract things herve leger...

    Make the sign up process a little bit harder or maybe have a 1+2=? question so this place doesn't get eaten alive by spambots.

  • If you don't know how to upload the capx this is how it's done

    Click Save as single file inside Construct2.

    Go to mediafire.com and upload it.

    Post the link you get.

    :)

    You can already save your project to a folder and overwrite the image files there... you just need to have Construct 2 closed. Is that something you need to do with Construct 2 still open?

    He's talking about quickly fixing a few pixels without having to close the program.

    Not something we need, just makes the process quicker. :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Haha, fun game! :) And thanks for the capx!

  • Thank you :)

  • Hey guys, I decided to try this out and I couldn't figure out what Kyatric meant - probably because I'm bad at reading events written this way.

    What I did instead was make 2 guide objects that my sprite had to collide with to change directions.

    Here is the capx:

    mediafire.com

    This works really well, but I would appreciate it if someone could edit this capx to represent what Kyatric is talking about :)

    -D

    Will come in handy! :)

  • Thanks guys, makes sense! :)

  • Just wondering how I'd make the enemy die when I jump on top of it, but let me die when I hit the sides.

    I just need a quick explanation of the code, can't for the life of me figure this out.

  • Whoa guys! Thanks so much.

    Love this community, you guys are amazing :)

  • Hey guys. I've got almost no past coding experiences so I'm having a difficult time thinking a solution for this.

    This is how my character moves (WASD movement)

    <img src="http://i.imgur.com/r5MQf.png" border="0" />

    Now this works pretty well, except for 2 things I can't figure out.

    1. When two buttons are pressed at once (ex. W and D) the character flies at a 45 degree angle. I want the player only to be able to press one button as once so I need a way to prevent this.

    2. I can't for the life of me let my character stop moving when he hits an object.

    Here is the capx if you wanna take a look.

    mediafire.com

    Thanks a bunch!