EyeHawk's Forum Posts

  • Hi Guys,

    I'm looking for a bit of help.

    I'm currently working on a simple puzzle game. Blocks are pushed up every 3 seconds, and if any reach the top the game is over.

    To eliminate blocks, you double click on groups of blocks. Any block with at least 1 like block adjacent to it is destroyed.

    There is gravity, so blocks will naturally fall to the bottom of the screen

    I've got the basic game play down now, but one other mechanic I'd like to implement is sliding the blocks to the middle of the board if there are ever any gaps on the bottom row, so that blocks will always get clumped into the middle like in this image:

    <img src="http://www.learnrec.com/ForumImages/PuzzleProblem.jpg" border="0" />

    Basically the columns blocks should slide towards the middle of the screen, so there should never be any gaps horizontally between the blocks.

    I've tried all sorts of things, but I can't seem to get this to work - I'm pulling my hair out.

    I've also included a capx.

    dl.dropbox.com/u/65326552/DemoPuzzler.capx

    Any help would be really awesome - thanks guys.

    EH

  • Aha, I think that may do the trick! I'll use the private variable technique. Thanks again Rex

  • Hi Rex, thanks actually that answered another question I had.

    In my original case though, I have two sets of rules like so:

    <img src="http://www.learnrec.com/ForumImages/PotblockActions.jpg" border="0" /><img src="http://www.learnrec.com/ForumImages/TomatoblockActions.jpg" border="0" />

    Both rules are identical, but the objects involved are different.

    It would be cool if I could turn the actions into a function, and then pass it either [TomatoBlock & TomatoCross] OR [PotBlock & PotCross].

    I can't use families in this case as the tomato actions would affect the pot objects and vice versa.

    I don't suppose there's a plugin that does this?

  • Great work Rex, love the function feature - I'll be using it for just about every project from here onwards.

    I was just wondering, is there a function that allows you to pass objects/sprites to it? I seem to have to copy & paste quite a bit when I need to apply the same rule types to different object/sprites.

  • Excellent many thanks for the heads up Ashley! I missed that when I scoured the search results over the weekend.

    There are some good tips in there, including having too many physics objects which could be causing some of the slow down in my case. Anyway, looking forward to directCanvas. Keep up the great work! <img src="smileys/smiley4.gif" border="0" align="middle" />

  • Hi Guys,

    I've seen a couple of threads about phonegap and performance issues, but I'm still hunting around for something that could help me improve performance. Currently they're so slow that they're unplayable.

    The first thing is, from what I read so far, the performance of the exported PG (phonegap) game will be the same as if you played it through the browser. So I guess it would be the easiest way to test for performance initially.

    But aside from that do you guys have any tips or tutorials on how to optimize performance specifically for Phone Gap?

    Even the simplest of exported games seem to run unplayably slowly on my samsung nexus and the emulator (Android virtual device).

    Thanks

    EH

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Actually don't worry about the above question, I'll repost as a question to avoid hijacking the post <img src="smileys/smiley9.gif" border="0" align="middle" />

  • Congrats Sugart, the game plays very smoothly on my nexus:)

    Do you guys have any tips or tutorials on how to optimize performance for exported games from Phone Gap? I've exported some really simple examples, but they run like a dog with low fps. :(

    For example I grabbed and exported Kyatric's simple ipad motion demo from here: scirra.com/forum/ipad-platform-game_topic47735_page2.html

    and even that runs really slowly.

  • Aha! Thanks Purple, that did the trick!

  • Hi Hayato,

    I'm also interested in seeing the capx. Or if you don't want to do that would you mind just typing down the commands you used? I can't seem to find any examples on the 'touch.acceleration' controls.

  • Hi guys, has anyone had any luck with this on Android Emulators from Android Virtual Devices (http://developer.android.com/sdk/index.html)? I created a virtual device for Android 4.0.3, and created an export from Phone Gap, but I also get a blank white screen for my games.

    I've tried removing the phonegap.js, but it doesn't seem to solve the problem. I haven't had time to try it out with other versions yet, but will give it a go over the weekend. Has anyone else had any luck with the emulator? If so what versions did you use?

  • Hi All,

    Just wondering if I could get your expertise with a problem I have.

    I've recently followed a tutorial about creating a procedurally generated dungeon, which worked.

    I then extended the capex to include a platform player as well as some enemies, which have simple behavior (i.e. move left, right and in proximity of the player, they will follow the player).

    Now the problem I have is that as soon as I put down more than 2 of the enemies, the game slows down to a crawl. After about 5, everything freezes up.

    I put down the conditions that enemies can't move if they are outside of the player's screen, but this doesn't seem to help either.

    I've made a copy of my capx in dropbox below:

    dl.dropbox.com/u/65326552/Miner%20Game.capx

    Any tips would be greatly appreciated! <img src="smileys/smiley2.gif" border="0" align="middle" />

  • Hi Guys,

    I've been trying to upload into the Arcade, and I also get the "server error in /" pop up after I start uploading my game. Does this suggest running out of server space?

    I read through the guide (http://www.scirra.com/tutorials/82/uploading-to-the-scirra-arcade), which seems straight-forward, but perhaps I've missed something else?

    Cheers