linkman2004's Recent Forum Activity

  • Technically yes, but I'd recommend against including the full install file. Just include the web installer; no point in inflating the download size of your game especially in case people already have the latest runtime.

    DirectX Runtime Web installer

  • Upload your CAP file so we can see what you're doing. It's hard to fix something if you can't see it.

  • It's a problem with triggering at the start of the layout. Try using the "Compare time" condition in the system object and setting the wait time to 1. This seems to work fine.

  • Just right click this folder in the "Project" bar and click "Add file(s)":

    <img src="http://dl.dropbox.com/u/917406/yeshere.png">

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The resource folders are all under the "Project" bar on the right side, which should be on by default. If not, you can toggle it on by going to the "Home" tab at the top and clicking "Project" in the "Bars" section.

    Sounds need to be placed in the "Files" folder for the XAudio2 plugin to find them.

  • You can also do it in one line of code using string concatenation, which has the added benefit of letting you use properly named animations:

    Death animations

    Press the "space" key to trigger a random animation.

  • Yeah, most of the behaviors have a "Set activated" action which enables/disables the behavior.

  • The newer unstable releases have input boxes for image point locations.

  • Moved to "Open topic"

    I'm sorry, but posting a thread in a board you know it doesn't belong in isn't allowed. A shadow thread has been left in place so people can still find your thread through "Construct discussion", but please refrain from doing this again.

    On a less strict note, the average "Construct Discussion" thread has only 15% more posts than the average "Open Topic" thread.

  • Yeah, I just remembered that you need to clear the vector with clear() before doing anything else when loading. That should fix your problem, although it's hard to say without seeing the code.

  • Hate to say it, but there's a lot wrong with your CAP. First, we'll start off with the main problem.

    First we'll take a look at this chunk:

    <img src="http://dl.dropbox.com/u/917406/foreach.png">

    These "For each" loops are unnecessary and messing up the picking. Instead of only picking the most recently created object, it's looping through each object created up to now and performing actions on it. This means that whatever happens to the last object you create will happen to all of your objects. To fix this, just take the actions from the "For each" loops and place them in the "Repeat" loop, then put the sub-events to the second "For each" loop as a subevent to the "Repeat" loop and get rid of the "For each" loops, like this:

    <img src="http://dl.dropbox.com/u/917406/noforeach.png">

    Also, the int() cast when generating a random number is unnecessary and seems to be messing things up. And since you only have four objects, the expression should be this: 1 + random(4)

    Next up, we have this chunk:

    <img src="http://dl.dropbox.com/u/917406/else.png">

    These else conditions are unnecessary and messing things up due to issues with the else condition. The checks to see which animation is playing are also unnecessary, as are the actions to tell the current animation to play. An animation automatically starts playing when you switch, so they're not needed. This chunk should look more like this:

    <img src="http://dl.dropbox.com/u/917406/noelse.png">

    And that should get it working. Not only will this fix the problems, but you'll also get cleaner code, which is always a good thing.

    Here's a download for the modified CAP.

  • Also, this should be posted in Construct Engineering.

    Heh, I didn't even check which forum this was in. Moved.

linkman2004's avatar

linkman2004

Member since 15 Jan, 2008

Twitter
linkman2004 has 1 followers

Trophy Case

  • 16-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

18/44
How to earn trophies