Nimtrix's Recent Forum Activity

  • Hmm, what kind of behaviour are you using? Seems to me the platform behavior sorts this out automatically. Maybe you could upload your file to dropbox and post a link here so I can have a look?

  • Check out my example in this thread, that should do the trick in your case as well, comments inside the .capx.

    PS: If you searched the forum for "cooldown" that thread would have been in the search results.

  • When calling a function, you can also pass parameters. These are simply numbers or strings that are made available to the function.

    For simple questions about what the different features do you should just look it up in the manual.

    It's also a bit difficult to imagine exactly what happens with that screenshot since we know nothing about the position of the objects or what they are there for. It's easier if you share your file, so we don't have to spend ages interpreting your event sheet and just guessing what it looks like in your layout.

    If you don't want to share your file for some reason, you can recreate the bit you need help with in a smaller project.

    Anyway, I'd love to help, but I'm not really sure what the problem is, and what your events are meant to do, and I'd rather not spend the next 30min trying to figure it out when I could just press the preview button and see it in a few seconds. <img src="smileys/smiley2.gif" border="0" align="middle">

  • You could add another, inverted condition to the event so that it doesn't move if both keys are pressed:

    +Left Arrow Down

    +Right Arrow Not Down

    • > Move left

    Invert conditions by pressing I on the keyboard or right-clicking.

  • Hi, welcome to the community.

    1. There are many ways to move things around in C2, but how you do it depends very much on what kind of movement you have in mind. Maybe you could be a bit more specific? The beginner's guide covers a lot of the basics as well, so you might want to skim through it if you haven't already.

    2. This one's probably slightly more complicated, first we need a variable to use as a timer, then we can adjust the opacity of the object based off that variable. Here's an example (comments inside):

    FadeOverTime.capx (r134)

  • You have 3 columns and 3 rows, so you need a (3,3,1) sized array.

    The default height is 1, it can't be 0 or the array would always be empty, so if you want to add two to the height, that makes 3.

  • How about something like this for the touch end?

    TouchRelease.capx (r134)

  • I would just use global variables for things like score and time, but you could also make an object global by setting it in the properties to the left (if default setup) after selecting the object.

    By the way, you can keep all the global variables in it's own event sheet if you have a lot of them, then include that event sheet wherever you need to use the variables.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yeah, use "System -> Create Object" instead of selecting the player object and using the spawn action.

    Then you just set "sprplayer.X + 40" to position it based off the origin, or "sprplayer(1).X + 40" to position based off imagepoint 1.

  • Link to .capx file

    Inverting an LOS condition doesn't seem to behave the way people expect it to, as mentioned in this thread.

    Steps to reproduce:

    1. Add object with LOS behaviour

    2. Add event condition "Has line of sight"

    3. Invert condition

    Observed result:

    Seems to ignore the inverted condition and execute actions even if object is in LOS.

    Expected result:

    Inverted "Has line of sight" should mean "Does not have line of sight", and actions should not be exectued if the object is in LOS.

    Construct 2 version:

    r134

  • It behaves strange for me as well, but remember to post things like this in the bugs forum or the issue might not be adressed. I'll do it this time.

  • Pinning and setting every tick is basically the same. It's all about preference, the position of the object would have to update every tick even if you pin it.

Nimtrix's avatar

Nimtrix

Member since 30 Dec, 2011

None one is following Nimtrix yet!

Trophy Case

  • 12-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies