Download Construct 2 release 27

0 favourites
From the Asset Store
Casino? money? who knows? but the target is the same!
  • I'm finding a problem with useing loops with subevents. I used for each and added a subevent to compare 1=5 (which should be never true). For some reason the subevent's actions are being run for all of the objects but one.

    ex: http://dl.dropbox.com/u/5426011/c2/bug.capx

    It seems to occur with any subevent condition.

  • There's a thing I've been wondering about. Is there a specific reason to why the keyboard and mouse objects aren't automatically added to a project? I think most people would want to use both objects while working on it and likely in the end project too.

    I'm guessing it's that way because it was like that in 0.x as well, and I thought the same then. Seems like it just adds an unnecessary step for C2 users, so I thought I'd ask.

  • A game might be mouse-only or keyboard-only, and adding both would be overkill. In either case the other isn't needed.

    Also what if you want to make a simulation or an example that doesn't need input? Or a banner thing for the top of your web page? There are a few reasons why you wouldn't need mouse or keyboard.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Might there be a way to do both? It seems it would be helpful to have it reference only the currently picked objects with a 'sprite collides with sprite' event.

    You don't need expression indexing for the sprite collides with sprite events - just the 'pick nth instance' conditions.

    I'm finding a problem with useing loops with subevents

    I think I see the problem in the runtime, should have it fixed next build.

    There's a thing I've been wondering about. Is there a specific reason to why the keyboard and mouse objects aren't automatically added to a project?

    It's the principle of don't-pay-for-what-you-don't use: if you're not using mouse input (as someone says, like on a banner advert) then you shouldn't pay for the extra weight of carrying all the mouse javascript around, or having it take up space in the event wizard when it's not used, and so on. It's only a couple of clicks to drop in when you are using it so I don't think it's a big deal - if we get round to adding templates, that would effectively solve it too.

  • Ok, that answers my question then. Was simply wondering.

    I think I found a problem with either the text object or variables.

    I have an object named "player" with the variable "health" and wanted to have the text show the variables value so I set the text to: player.health, each tick. However the text object displays nothing when I do this. However, if I instead set the text to: "Health:" & player.health, then it displays both the text and the value. I added it to the tracker with the capx.

  • Might try str(player.health).

    At this time text doesn't accept anything except strings.

  • Yup, that worked.

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