Ashley's Forum Posts

  • Each script block in an event sheet has its own scope, so local variables aren't shared. If you want to share something between them, you could use global scope instead.

  • Answer your own performance questions with measurements

    I would guess in this case you will struggle to measure any difference at all, because it's not important to performance.

  • You do not have permission to view this post

  • I checked our code logs and there have been no substantive changes to the Physics behavior this year. This means it's pretty unlikely there really was any breaking change in the Physics behavior, so I would suspect that's not actually the cause and you've mis-attributed something else. Additionally if you roll back to a previous release and it still doesn't work, that is a strong sign that there was not actually a change in Construct itself; it could well be a change you made to the project and mis-attributed to Construct.

    This is very common - the bug report guidelines are there to help you get to the bottom of the real issue and provide all the information we need to actually help, so I can only advise that you follow those.

  • It seems to show the HTML correctly here. Images and other sub-resources won't show though because you've not really uploaded your project. For example the HTML file referencing img.png in preview mode will request preview.construct.net/local/img.png, but you haven't uploaded a file there (and can't since it's our domain). So it won't work until you publish your project.

  • Yes, you can use the full set of web APIs. Your JavaScript code runs just like it's in a <script> tag.

    Also you don't need to include extra scripts to use browser APIs - you can just use them directly (e.g. document.title = "Hello world";). Although importing JS libraries can be useful as well.

  • Why not just use "Move to object" every tick? If you have an action that starts automatically following an object, you'd also need an action to stop it again, and all that seems redundant compared to just using "move to object" with a condition that controls if it's true or not.

  • Obviously I'm totally unbiased, but it looks like they use a flowchart system instead of anything approaching the event sheet. It looks like it doesn't do much of what Construct's event system can. Also one of the big disadvantages of flowchart systems is they are 2D and quickly land you in a spaghetti-like mess as soon as you do anything more than the basics. Event sheets stay well-organised even with thousands of blocks, since they are just listed in the event sheet.

  • Construct 3 already supports publishing to Xbox One.

    For other consoles we'd need the console maker to add support for HTML5 games, and the more people ask them for that, the more likely it is to happen. Until then there are a couple of porting companies that have sprang up that can take a Construct game and port it to major consoles for you.

  • Construct 3 uses a different spritesheeting algorithm that is better at combining multiple objects on to the same spritesheet. However if you do things like create lots of objects dynamically at runtime without them being placed on the layout, this can cause higher memory usage as Construct doesn't know ahead of time how to group objects on spritesheets according to when they're used together. See memory usage in the manual for more information on best practices.

    If that doesn't help solve it, you can try reducing the spritesheet size in project properties. It can help increase the granularity of image loading, which can bring down the overall memory use.

  • That should definitely not use jQuery then.

  • Well, "made in C3" doesn't necessarily mean much, since C3 supports both the C2 runtime (which uses jQuery) and the C3 runtime (which does not).

    If you are using the C3 runtime it's also possible a third-party addon included jQuery. There's not much need for it these days so in that case you could ask the addon developer to remove it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • My question is, how powerful is Construct 3's visual scripting really? It claims that it can make just about any 2D game you can think of, but due to the nature of visual scripting I'm a little skeptical.

    Really powerful. Commercial games have been published to Steam using nothing other than the block system. Take a look at the showcase too.

  • Assume you have a sprite that want to load random image from a selection of 500 images. How can you achieve that without the need to load all images into memory?

    Use 500 separate sprite objects and put them in a family. Then it only loads the ones placed on the layout, or that you create at runtime.

  • I guess just ignore the message for the time being. The fact a library has a known security issue does not mean you definitely have a security issue. In particular Construct only uses jQuery for a few random utilities so I'd guess it's not particularly relevant. Also this is the C3 section, if you think it should be fixed in C2 then you could file an issue for it there.