Ashley's Recent Forum Activity

  • Making your own particle effects with Sprites is a good alternative if the Particles effect does not do everything you want. Particles is more of a shortcut to quickly put together simple effects.

    Particles is a little more efficient than drawing lots of sprites (it takes advantage of the fact the particles don't rotate). However we've done a lot of work optimising the renderer so using lots of sprites shouldn't be much of a problem either. Make sure you have WebGL enabled with a WebGL-compatible PC/browser and it'll probably still be fine.

    BTW you could try mixing particle images by placing different particle sprays directly on top of each other.

  • You do not have permission to view this post

  • If your goal is to reach as many people as possible, C2 will actually do that better with HTML5.

    HTML5 games can be played on Windows, Mac, Linux, even some mobile devices... Construct Classic games only work on Windows, so you exclude Mac, Linux and mobile devices completely. So I think you'll actually reach fewer people using CC!

  • Should be fixed in the next build, thanks!

  • It's a bug - should be fixed in the next build.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The best thing you can do is make sure you open a window in a user input event, like 'On mouse button clicked' or 'On key pressed'. Hopefully then the browser recognises that the window opening is an action the user intended, and not some spammy popup advert.

    However, this doesn't always work - spammers still use the same method for opening popups. So some browsers (Firefox especially IIRC) will simply block all window opens anyway, and the user must approve it by clicking the notification. Users are probably fairly used to this. So you can either just have a note (e.g. "Warning: opens new window") so the user knows when they see the "popup blocked" it was actual content rather than some popup ad. Or you can just navigate the current page - that will end the game, but it always works. Or, just put the hyperlink in the page HTML outside your game.

    This is more of a general problem with web development than anything specific to C2 - everyone hates popups, and if you try to open a new window, you're at the mercy of popup blockers.

  • If you test "Sprite is overlapping Sprite" with 100 Sprites, Construct 2 must test for a collision between every combination of pairs of Sprites, which is about 100 x 100 = 10,000 collision checks per tick, which at 60 FPS is trying to do 600,000 collision checks per second. That kind of thing doesn't even run well in C++ engines, you're just asking for way too much processing to be done.

    A simple way around it is to maybe only check every 1 second, or come up with a simpler way of trying to do what you're doing.

  • There is no problem with having a very large number of global variables. There is no limit on them.

  • Change the 'parallax' property on the layer you want to scroll slower. E.g. make the background parallax 30, 30.

  • Arima - I deliberately went with the "Or block" design because it is very simple. Allowing multiple conditions between ORs becomes significantly more complicated, both in the editor's rules for valid events, the usability and in the runtime engine. So I opted for something simple which is easy to use and robust.

  • What's wrong with using a global variable? What you've done looks fine. If you don't want the variable to be accessible anywhere else, move all that in to a group or subevent and it will become a local variable not available anywhere else.

  • AJTilley - check out this thread.

Ashley's avatar

Ashley

Early Adopter

Member since 21 May, 2007

Twitter
Ashley has 1,831,394 followers

Connect with Ashley

Trophy Case

  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • Forum Mega Brain Made 20,000 posts in the forums
  • x126
    Coach One of your tutorials has over 1,000 readers
  • x74
    Educator One of your tutorials has over 10,000 readers
  • x6
    Teacher One of your tutorials has over 100,000 readers
  • Sensei One of your tutorials has over 1,000,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • x44
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs