Xavier's Recent Forum Activity

  • Do you mind showing a screenshot of the events you use to exchange the objects if they are in the very next cell?

    I'm using an invisible image with a cross shape, but I'm having trouble with the events. It works but it's still buggy sometimes. Otherwise I'll just ask in another thread. Thanks.

  • Search in the plugins forum, there are some plugins about timers or dates.

  • Capx:http://dl.dropbox.com/u/1910765/bugtest3.capx

    More specifically, it crashes when adding an object to a family that already had a behaviour, and then trying to save/run the game, the program crashes with this error:

    Note: To reproduce the crash in the .capx, edit the family called "NormalGems" (which is the family that has the bullet behaviour) and add some sprites to this family. Then save or run the game.

    ---------------------------

    Construct 2 Check failure

    ---------------------------

    Check failure! This is probably a bug:

    GetBehaviorInstanceFor(): object instance does not have an associated behavior instance

    Condition: i != instances.end()

    File: Projects\BehaviorType.cpp

    Line: 183

    Function: class BehaviorInstance &__cdecl BehaviorType::GetBehaviorInstanceFor(class ObjectInstance &)

    Build: release 91 (64-bit) checked

    Component: Construct 2 IDE

    (Last Win32 error: 0)

    You are using a 'checked' release of Construct 2, intended for testing, which causes certain errors to be reported this way. Hit Ctrl+C to copy this messagebox - it's useful information for the developers, so please include it with any bug reports! Click 'Abort' to quit (unsaved data will be lost!),'Retry' to turn off messages for this session and continue, or 'Ignore' to continue normally.

    ---------------------------

    Abort   Retry   Ignore   

    ---------------------------

  • Well, then I guess you could use 2 variables, one that takes care of the score, and the other one that takes care of the number of objects. So everytime a match/mistmatch happens, you always add 1 to one variable, and also you add or substract 1 to the score variable. At the end you will have one variable that will always be 10 which will trigger the "final screen" and another one that will be 1-10 that can be used to display the score.

    "Else" is not on the actions, you have to right-click on the condition, select the Add option and finally "Add Else".

    You can post a .capx of your project, just upload it to dropbox public folder like everyone else.

  • You could use a family if you want to use instance variables.

    I guess you could also do it with a normal global variable. Everytime you match/mismatch a pair add 1 to that variable, and when it reaches 10 make the final screen appear. Just be sure to reset the variable at start of layout if you have more than one level.

  • Also, the list must be too big to fit in a forum post.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • On the project .capx, if other people don't have them installed we can't open it.

  • Can you remove the plugins?

  • Can you try using "on mouse button released" instead of left click? And add another condition "cursor is over grey button". If that works I think I know why this happens.

  • I remember reading that if it's a tiled background, the size has to be a multiple of 2 otherwise it will blur in WebGL. Also, try changing the sampling from linear to point, although this might make other things look slightly worse from what I saw.

    Also, make sure the zoom is 100% on the browser.

  • As far as I know, objects outside the layout are not drawn but are still processed (logic). If you don't need the object anymore use the behaviour destroy outside layout, or you can do it manually via events if you want more control, with the condition "is outside layout".

    If you didn't read the last blog entry then I recommend it:

    http://www.scirra.com/blog/83/optimisation-dont-waste-your-time

Xavier's avatar

Xavier

Member since 16 Dec, 2011

Twitter
Xavier has 7 followers

Trophy Case

  • 12-Year Club
  • x2
    Popular Game One of your games has over 1,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies