Jewel Drops - A Basic Starting Template You Might Find Useful

2»

Comments

  • KevinCrossKevinCross London, UKMember Posts: 1,894
    Glad you like it and managing to build a game from it :) Looking forward to seeing your progress/final game. I'm currently working with the template now to create a Bejewelled clone which I might share at a later date (depending on how far I get with it)

    You don't have to, but if you do find a solution for the bugs would you mind sharing them please for others? Maybe editing my original file if it's a quick fix or explaining the fix in a post/comment :)
  • alimpo83alimpo83 Member Posts: 188
    Sure, if I have the time, I'll share with others. I'm currently finishing a game, and trying to keep the pace in other two projects, so It may take a while!
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    Thank you, and no rush
  • alimpo83alimpo83 Member Posts: 188
    I'm currently trying to reset scene, instead of reset game, as you had, so I've created an actor to reset the attributes. I've resetted most of them, but the game crashes when I try to reset scene. Any ideas?
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    Not at the moment no but I can take a look at my file later to see what game attributes need resetting with "reset scene" instead of "reset game".
  • alimpo83alimpo83 Member Posts: 188
    edited September 2013
    Thanks, I would appreciate it, since I'm adding new game modes to your template and need to reset the general attributes.

    EDIT: Like this Hard Mode, in Monochrome.

    imagebam.com
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    edited September 2013
    When you reset the scene you also need to reset the table and because there isn't a behaviour to reset table you'll need to create new versions of each table and add something like MASTER or ORIGINAL to the end of the name of the newly created tables.

    Don't rename the existing ones because then you'll have to go through and change references throughout the code.

    Make sure the new tables have the same structure as the ones that exist in your project at the moment, export and import csv files should help set them up quickly.

    Once created where I have reset game on the play button you can change it to reset scene. You can then add the copy table behaviours to either the play button or on the jewel spawner actor i.e.

    Copy Table: tblColourGrid MASTER to tblColourGrid
    Copy Table: tblJewels MASTER to tblJewels

    You'll also need to set gameOver to false and set other game attributes to their defaults like score and jewelCounter etc.

    This worked for me.

    I've updated the file to work with reset scene instead of reset game

    http://www.kevincross.co.uk/wp-content/uploads/2013/09/GameSalad-Template-Jewel-Drops.zip

    If you've downloaded it before you may need to clear your cache as I've found in the past it's not picked up the newest version, especially in Chrome.
  • alimpo83alimpo83 Member Posts: 188
    I did it, and it worked nicely. Resetted the game.score and such, but i can't change the order of the squares, after I reset. Which is the attribute that is linked to that? Thanks.
  • alimpo83alimpo83 Member Posts: 188
    Your version don't allow changing of order of blocks after resetting scene.
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    What do you mean the order if the squares? Cycling through the colours? Try setting game.cyclingColours to false before or after your reset scene behaviour. Sorry I didn't test that when checking the reset scene.
  • alimpo83alimpo83 Member Posts: 188
    That was what I tried the first time but with no sucess. It makes sense but It didn't work.
    But it should right?
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    I will have a proper look in about 30 minutes
  • alimpo83alimpo83 Member Posts: 188
    edited September 2013
    Ok , nice. It's the only attribute (and button) that seems to have a bug at the moment.
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    edited September 2013
    Set parentJewelID to 0 before or after you reset scene. It's not switching because the parentJewelID only changes if the jewelID spawned is greater than the last parentJewelID, and parentJewelID still has a high number from the previous game. I'll amend the version and upload it in a mo, but for now that will fix the problem.

    EDIT: Version amended and uploaded.
  • alimpo83alimpo83 Member Posts: 188
    Yes, it was parentJewelID. I got it working before your edit, but now it works!
    I'm making menus and changing scenes to menu and such, I'm getting some bugs, because of the attributes to reset, but I'm working on it.
Sign In or Register to comment.