ataru58's Recent Forum Activity

  • 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

  • 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.

  • (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.

  • 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?

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Dang, I've done just what you've said, but I'm doing something wrong. Even though all 3 choices are under the Trigger Once condition, it will simple go back to default. I've got it set like this and I know what's wrong, but I don't know how to fix it currently:

    + input: On player 1 pressed "Change Weapon"

    + System: Trigger once

    + System: player ('weapon') Equal to "bullet"

    -> player: Set 'weapon' to "shotgun"

    + System: player ('weapon') Equal to "shotgun"

    -> player: Set 'weapon' to "missile"

    + System: player ('weapon') Equal to "missile"

    -> player: Set 'weapon' to "bullet"

    It pretty much goes through each condition and sets them correctly...right back to bullet. How do I fix this?

  • Alright, now I'm trying to do a Weapon system, where you press a key and your weapon changes, like this:

    Current Weapon is bullet

    Pressed key D: Weapon changes to shotgun

    Pressed key C: Shotgun shoots

    How would I go about this?

  • why not just do on collision with whatever. they don't need to be solid. the solid attribute is so things with behaviors such as platform and stuff, know what they can stand on and go through, etc. if you just want to make something happen when it hits something

    just use the on collision condition

    Alright. Removed the Solid attribute from the enemies. While I was doing that I implemented a shotgun too(Press F). Check it out:

    http://www.mediafire.com/?8h8a7p4bx0xfdl9 (Another New Platform file, last one didn't have music or the Solid attributes unchecked or various collisions properly implemented. Apparently crashes don't save anything for your game, SAVE YOUR APP AFTER EVERY CHANGE!)

    Also found an awesome little tool for 8-bit sound FXs: http://www.superflashbros.net/as3sfxr/

  • does the character need the solid for anything? if not, take it off the character...same with enemies unless they have some reason to use it

    Pretty much to make sure that bullets and missiles don't pass through it.

  • >

    > Is there a spot to implement Global Variables? I'd like to have a running tally of each "Enemy" in the game, so that when it's down to 0, you win the game.

    >

    When you go to select your objects, for actions and such, choose the system object. It has global variables. Just make an action. System-Set Value

    For this particular case though, unless you don't really have all those enemies there, are you're making like a wave of enemies and behind the scenes you're creating them offscreen or something, There is actually a System expression that counts objects CountMatching(objectname). it counts the objects currently picked, so if you don't have any type of picking condition before you use that expression it will just count all the objects of that type in the layout

    [quote:3mb7a0r8]What's a good way to do a transition between 2+ layouts? Can you do this with 2 doors, 1 in each room to take you into the other? If so, how best would this be accomplished?

    I've never worked with multiple layouts other than quick experiments so I'll leave that one to someone else

    [quote:3mb7a0r8]Sometimes my character or one of the enemies will be sent outside of the room, how do I fix this neither of us can leave the layout? Also, sometimes the physics will get wacky and when an enemy pushes me up or down through a platform I teleport through it, any method to alleviate this issue?

    first question is do you mean physics like the Physics behavior? or just the general sense of the word physics and you're using the Platform behavior? if physics behavior what actions are you using to set the speed or strength of the enemy? If platform, what actions are you using to simulate pushes?

    1. Awesome, that CountMatching works perfectly! Now when all of them are dead, you get the You Win text!

    CountMatching("Enemy") <= 0: "Set text to "YOU WIN""

    3. Essentially, the enemies and myself have the attribute "Solid" and no physics behaviors. It seems to work fine, except for the teleportation.

  • For just starting a few days ago, you're doing very well so far. Looks like you've got a grasp on all the basics. I only started a few months ago myself, so I know how confusing things can be once you start getting more advanced -- don't be afraid to ask for help, there's a great community here.

    So, welcome to Construct, and good luck on your future work.

    Thanks! I'm really enjoying all the little things that Construct will let me do.

    I do have a few questions actually:

    Is there a spot to implement Global Variables? I'd like to have a running tally of each "Enemy" in the game, so that when it's down to 0, you win the game.

    What's a good way to do a transition between 2+ layouts? Can you do this with 2 doors, 1 in each room to take you into the other? If so, how best would this be accomplished?

    Sometimes my character or one of the enemies will be sent outside of the room, how do I fix this neither of us can leave the layout? Also, sometimes the physics will get wacky and when an enemy pushes me up or down through a platform I teleport through it, any method to alleviate this issue?

    Thanks.

  • Hello, I found Construct after watching that amazing Metroid remake, Minitroid. I've been working with Construct and I'm loving it! I'm currently testing my abilities and also learning from Platform School as well. Could some of you check out my example and tell me how it's looking? Thank you.

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

    PS: I'll use this topic to ask questions as well.

ataru58's avatar

ataru58

Member since 9 Apr, 2011

None one is following ataru58 yet!

Trophy Case

  • 13-Year Club

Progress

13/44
How to earn trophies