justifun's Recent Forum Activity

  • JeZLee

    Check out this page to see how to get all of the badges/rep points

    scirra.com/badges

  • PM'd

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Check out my post here:

    scirra.com/forum/easy-object-toward-cursor_topic62801.html

    Instead of moving towards the mouse cursor though, you want to change the part in the .capx example, and replace mouse.x with player.x

    and mouse.y with player.y -200 (the -200 will keep the helicopter always flying above the player instead of moving directly to its location)

    then you can play with the movement speed to determine how fast the helicopter moves.

  • change the property setting of "default controls" to NO on your sprite

    then use the following actions to move your character with whatever keys you want

    on key down "w"

    -> simulation 8 dir control "up"

    etc

  • I'd like to try it out too

    mccannf

  • If the player ISNT in the center of the screen, here's another way of doing it.

    create 4 events

    mouseAbsolute.X > player. X

    AND

    mouseAbsolute Y > player.Y

    -> set animation player to "north"

    MouseAbsoute.X < player.Y

    AND

    mouseAbsolute.Y < player.Y

    set animation player to "south"

    etc etc

    Make a event check all 4 locations based on the players postion, top left, top right, bottom left, bottom right.

    then change the animation based on that.

    only 1 will be true at any given time.

  • Wakey

    One non mathematical way of doing it, is to create 4 triangle sprites. One representing North South East West (imagine creating a giant X over the middle of the screen)

    Then use

    On mouse over "North" set animation to "player north" etc

    then make the triangles invisible so you can't see them.

    Here's an awesome sketch

    imgur.com/h1mb2mU

    This assumes your player is always in the center of the screen though.

  • one way would be to create a variable for each gun

    then when the player switches to a particular weapon, you have a section that says

    currentgun = "machineGun"

    -> every 1 second add +1 to "machineGunTime"

    then check which one is the biggest at the end of the game.

    There's a fancier way with arrays, but this is the easiest way to visually understand what's going on.

  • To further elaborate on what vee41 was saying.

    Basically you would create one sprite representing the game board.

    You could vary up the look of the piece, by using a different frame of animation for a different "look" to the piece if it has a variety of types lets say.

    Then you would give it one variable called "visited"

    When you create multiple instances of the board square, each one will then have its own "visited" variable that will keep track of itself

    then you would simply code something like this.

    player is overlapping object "board piece"

    -> set "visited" to 1

    or however your game works.

    then late you could check if its visited by doing.

    (board piece) visited = 1

    -> do this

  • I'd recommend simply making a 3 or 4 frame animation using the noise function within any art program, and then add it as a regular sprite animation.

  • The Iconoclasts was made with Construct 1

    youtube.com/watch

  • Well said Ashley !

justifun's avatar

justifun

Early Adopter

Member since 9 Oct, 2012

Twitter
justifun has 4 followers

Trophy Case

  • 13-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

21/44
How to earn trophies