PixelRebirth's Recent Forum Activity

  • Double your double quotes.

    "Hello" obviously just gives you: Hello

    """Hello""" would give you the output: "Hello"

    "Hello ""Friend""" would give you the output: Hello "Friend"

  • You could create keys in a hash table on startup for each group of the ini. Add the relevant item as value of the key. Then you can loop through all the keys and for every key that matches the value you could spawn a dummy sprite with a PV that equals the keyname. Now you can pick a random dummy sprite and will therefore have selected a random group that matches.

    EDIT: Or instead of creating those sprites just add the keyname to a string with a divider attached. And then pick one by random with Gettoken(Random(Numtokens)+1) or something of the sort.

    It doesn't seem very clever to me right now, but that's the only thing I could think of on top of my head . And seeing that you haven't got any replies yet I thought I'd share.

    Oh, and if you already found a better solution please post!

  • same as str(global('timer')) ?

    Yes, if you want to insert a key you have to specify the key name as string if it isn't already. Unfortunately it doesn't work automatically with the hash table.

    This is especially annoying when you want to add keys and values dynamically from an INI for example. You have to tell the hash if it's a value, string or float. Otherwise it will remain 0.

    This is one of the major quirks I see with hash tables, which are otherwise very useful. Unless I'm overlooking something obvious or there's a good reason it works the way it does... at least I can't think of one.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I just created a quick memory example from scratch. It's nothing to look at, just plain colored cards and it's also not commented. I'm using an Array object, HashTable object and the Function object. You probably should be familiar with those in order to understand this example (consult wiki).

    http://dl.dropbox.com/u/2306601/memory_004x2.cap

    The X/Y Size of the array defines the number of cards. Not too different from the puzzle tutorial I create the cards from that array. I randomize it so that there will be 2 of every possible card by using the hashtable (adding and deleting keys from it in a certain manner). You'll see there are different loops and some math with Globals involved which might look confusing on first sight. But it's nothing too complicated really.

    There may always be a better method to do this. At least this is a lot less of a hassle than the old version I did over a year ago. Anyway, I hope it's helpful to you.

  • I already created a memory game and it isn't particularly complicated to achieve this. You could just have all your card images as frames of a single sprite. Then compare those frames. That's like the basic principle.

    I'd share my cap but it's using family photos as card images. I would have to edit those out before I put it on the internet. Which I can't do right now. But it's easy enough to figure this out by yourself (hopefully).

  • > does construct support midis?

    >

    No, I don't think any of the plugins do directly. You could either use Python or write a plugin for it.

    I'm a little baffled by that statement. Of course Construct does support midis. Just use Xaudio to play midi files.

  • 6Fix beat me to it.

    Still here is my example anyway, since it's slightly different using PVs to place instances of the same sprite on the appropriate image points.

    http://dl.dropbox.com/u/2306601/chain_thing.cap

  • PixelRebirth I have a fun idea for your puzzle tutorial into a game.

    Premise: You are a molecular engineer at a power plant. By manipulating like subatomic particles you create power, but at a costs. Every time you move a particle it costs energy. So how long can you keep your power station operational?

    Game:

    Moving a particle costs energy

    3 or more particles in a row create energy (bonus for 4+)

    If you run out of energy you lose

    High score board for total energy created

    Anyone else with ideas? Specials? Bad particles? Time attacks?

    That actually sounds like a cool concept for a match3 puzzler. Why not go for it Guyon? I'd be looking forward to what you can come up with!

    Oh and well, there could be particles that match with any color when switched, but cost a hell of a lot more. Or the usual stuff that destroys any with the same color it was switched with... heh, can't rly come up with something original can I?

  • Looks like fun indeed!

    Out of curiosity: are you using your own engine for this or is it by any chance adapted from my tutorial caps? I'm always interested in different approachs to things.

    And yeah, how about something playable?

  • This app isn't a bad idea at all!

    It might be grat if there was some kind of official depository where people could submit there plugins..then the whole thing could be automated.

    I agree that it should be automated. What you could already easily do is let the program scan the completed addons forum and add those automatically to the list. Just look into the internet objects.

    EDIT: Oh, and why not include custom effects as well in this?

  • I just bump this because I finally came around and adjusted this to work with recent Construct versions. Actually there was just one single event to be slightly changed. I somehow imagined it to be a lot harder, which is mostly why I didn't attempt it before.

    So you can go ahead and try this again. I still consider to add the events to disable swaps that don't result in a match. Or keep it as it is for some of you as a learning experience. It's just a few more events at the right places.

    Why isn't this on the wiki tutorials? Lots of nice concepts and ideas here.

    Thx for adding this to the wiki btw!

  • Looking at the TOC this book appears to be tailored for absolute beginners (of course). Although it seems to cover some more advanced issues. Interesting. I'm especially curious about these two paragraphs:

    WHY WOULD ONE PREFER CONSTRUCT OVER GM8 FOR GAME CREATION?

    WHY WOULD ONE PREFER CONSTRUCT OVER MMF2 FOR GAME CREATION?

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