PixelRebirth's Recent Forum Activity

  • Problem Description

    Objects on a layer with (0,0) parallax get displaced from their positions set in the layout editor when the fullscreen mode is set to "Crop".

    Attach a Capx

    Capx not required, please open the Top-down shooter template.

    Description of Capx

    In the top-down shooter template, there is a (0,0) parallax layer with a text object on it placed in the top-left corner.

    Steps to Reproduce Bug

    • Open the Top-down shooter template.
    • Set the fullscreen mode to "Crop".
    • Run a preview of the layout.

    Observed Result

    The text object appears displaced and doesn't remain in its top-left position set in the layout. Playing with the size of the browser window you can observe that the displacement changes. It is in its correct position when the window does match the window size setting in the project properties.

    If you observe the viewport values in the debugger, you will see that the non-scrolling layer gets negative values for the left and top viewports for every bit that the window is bigger than the window size set in the project properties.

    Expected Result

    The text object on the (0,0) parallax layer should remain in the correct position at all times.

    Affected Browsers

    • Chrome: Yes
    • FireFox: Yes
    • Internet Explorer: Yes

    Operating System and Service Pack

    Win 7 Home Premium 64bit SP1

    Construct 2 Version ID

    r190

  • Sounds a lot like it might have something to do with a performance improvement introduced in r187:

    [quote:18be914c]The renderer now experimentally skips rendering layers with zero instances on them, which could save GPU fill rate processing screen-sized transparent textures if they use a shader, blend mode or own texture.

  • I think I never really used the "Crop" option for the "Fullscreen in browser" setting before. Now that I have need of it, I noticed that objects on layers with a "Parallax" setting of 0,0 get displaced.

    To test this you can simply open the top-down shooter template in Construct 2. The project does have a text object on a non-scrolling layer placed in the top left corner. It does display fine in all fullscreen modes (apart from what you expect to happen when using Scale inner/outer) but "Crop". The text will not show at the top left corner anymore, but appear displaced inside the game area.

    This appears to be a glitch to me.

  • Uploaded a little trailer for my recently released horror game (only intended for a mature audience):

    Subscribe to Construct videos now
  • NCD is a short topdown horror game created over the course of October (and some days in November too ). I do not want to describe anything about the story or background, since it is better to experience the game unprepared. Also this game is intended for a mature audience.

    I pretty much abused the "Adjust HSL"-effect here to create some kind of lighting. This came at the cost of performance, so I'm sorry if anyone experiences a low framerate which could render the game unplayable. To prevent anyone from trying the game in a slow browser, I decided to just go for a Node Webkit release for the time being.

    You can grab it over at GameJolt: Download NCD.

  • Joannesalfa

    Unfortunately I don't think that type of game is feasible with this plugin.

  • I have simulated the game scroll down the pieces and fails when the case occurs earlier or are on the wall.

    I'm not entirely sure what to make of your sentence, maybe you could try rephrasing. I take it you added moving pieces to the example. That would be quite a change, because all the example does is redrawing the entire board. But I don't see a problem if done correctly.

    Maybe show what you did?

    I'm reviewing the javascript

    I hope you don't review the source of the lib, because that's very likely a waste of time.

  • iceangel

    I think this is just a little misunderstanding. If you click on the "matches" button in the example, it will only clear the matches that are currently there.

    If you check the before and after images, you will see that the pieces above the stars that have been cleared moved down correctly.

    Now there are a couple of new matches available, which will be cleared if you click the button again.

    For the example it works this way to be able to figure out what's going on at all, since the pieces aren't visually moving. In an actual game of course it would also clear any upcoming matches until there are none.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • PixelRebirth

    Thanks for example! I would like to ask you a question, Is possible to do quad tiles? I was trying to optimize bubble shooter.

    I'm sorry, but could you please explain what you mean by quad tiles?

    PixelRebirth - This is awesome! Thank you so much for the example!!!

    I do have a question though. How would I go about checking for matches at specific locations instead of the entire board? In my game, I want to check for matches only on a single row or column and leave the remainders on the board.

    [edit]Also, is there a way to move multiple piece's together, instead of just swapping 2?[/edit]

    There is no built-in functionality for this in the plugin. You will have to make these specific checks yourself with events I'm afraid. Same goes for swapping/moving multiple pieces. Maybe it can help in certain cases to mirror the game board in a regular Array object since it provides more means of manipulation.

    PixelRebirth After testing the plugin, i found that has errors in "checkmatches".

    Please do elaborate. What about it have you found faulty?

    Thanks everyone for the feedback!

  • Okay guys, look for the commented example in the first post. I hope this helps!

  • jMatch3 0.4

    This plugin handles the logic of a match-3 type game and is using the jMatch3 lib created by Cyrille Bogaert.

    Download the plugin.

    Download an example file.

    I have been using it in an unfinished project of mine and believe it to be the easiest way to create this type of game in Construct 2. Although it might not be as flexible as other solutions.

    It is probably important to note that this plugin recognizes continuous matches. Meaning that in the following picture, the green gems would be positively matched.

    The gem graphics used in the example file and the picture above were created by Ville Seppanen. Find the source at http://opengameart.org/content/gem-jewel-diamond-glass.

  • The app ID is being submitted fine but I'm getting a JavaScript error with all my projects now I have the new plugin:

    JavaScript error!

    An internal error occurred in the Microsoft Internet extensions

    http://localhost50000/preview_prelude.js, line 189 (col2)

    Any ideas?

    No real idea for the moment. Let me ask though if you're maybe using any actions of the plugin before it is ready? You can make sure the API is ready with the "API is loaded" condition.

    I tested it before briefly in an empty project and with a game of mine and didn't get any javascript errors.

PixelRebirth's avatar

PixelRebirth

Member since 26 Mar, 2008

Twitter
PixelRebirth has 1 followers

Trophy Case

  • 16-Year Club
  • Entrepreneur Sold something in the asset store
  • 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
  • Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

23/44
How to earn trophies