New to Construct

This forum is currently in read-only mode.
From the Asset Store
Casino? money? who knows? but the target is the same!
  • Alright lucid, that worked like a charm. Check out my new Platform, complete with multiple weapons, great music, and fun platforming:

    http://www.mediafire.com/?o0ye76bb2pvmn9e

  • Alright, now what I'm trying to do is to take the Sprite images of the weapons and place them on another sprite. So pretty much, when I choose Missile, the Missile's image will show on a sprite telling me what I've got selected.

    What I've done is set up a sprite I call "currentWeapon" that's blank. I then have:

    + player: Value 'weapon' Equal to 1

    How would I go about making sure that sprite "currentWeapon" shows the proper image of what I'm wielding?

  • (Hopefully I get this one right >.>)

    With the "currentWeapon" sprite, you can have multiple frames, each one being a sprite of a different weapon, and set the animation speed to 0 so it'll never actually change frame on its own. Then you manually tell it which frame to go to based on the value of 'weapon', so if 1 means shotgun and the second frame of "currentWeapon" is the shotgun sprite, say this:

    + player: Value 'weapon' Equal to 1

    -> currentWeapon: Set animation frame to 2

    and so on and so forth.

  • (Hopefully I get this one right >.>)

    With the "currentWeapon" sprite, you can have multiple frames, each one being a sprite of a different weapon, and set the animation speed to 0 so it'll never actually change frame on its own. Then you manually tell it which frame to go to based on the value of 'weapon', so if 1 means shotgun and the second frame of "currentWeapon" is the shotgun sprite, say this:

    + player: Value 'weapon' Equal to 1

    -> currentWeapon: Set animation frame to 2

    and so on and so forth.

    Hey that works! I was trying to use the image manipulator. It has a "Copy to" and "Copy from" for Sprite objects, but it wasn't really working out. Your method works great.

  • Anyone have a fun idea to try to implement into my platformer? I'm thinking something like a wall jump or and RPG inventory system or powerups or something, but I'm kind of lost how to implement any of them.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Wall Jump and a few other platform examples can be found on my Tutorials Blog

    http://constructtutorials.wordpress.com/2011/03/12/a-few-platform-snippets/

  • I would say to start with something like a double jump or a wall jump, but try and get as far as you can, even if its just guesses that don't work, expirement and mess up, then post your question thread. Also, a lot of new peopl are afraid to 'annoy' people with a lot of new question threads. Just ask your double jump help question in a new thread so the title can let people know if its an area they'll be able to help you with.

    Edit: I wrote this before the intervening posts, but never hit post, so this isn't to say to ignore minor's blog post

  • Alright, I'm trying to add an INI file to the game to random pick which music plays, but I've got an issue with it. Right now it's just:

    AppPath & "src\music\" & conf.ItemValue("Music Files", "music1")

    That should give me:

    'AppPath' \src\music\bossbeat.mp3

    And it should play as the music, but right now, it just has the conf.ItemValue as 0. Let me post it, maybe I can get some help:

    http://www.mediafire.com/?bc4ip1rwo4fnlzb

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)