ShabbyCat's Forum Posts

  • Don't get wrong I'm not promoting DRM, but commercially it might be an expectation that you can so I just wanted to make sure it's something we could do with Construct 2, that's all.

  • Nah, I've never made a game worth of release so I've never been involved in that side of the house.

  • Ah I love it, good work very nice

  • Hi peeps,

    I was wondering how dose the order of the event blocks in the eventsheet affect Construct2. I noticed that if I put a "Start of layout" at the bottom of the event sheet it still works as expected, my assumption is that the event sheet is evaluated every tick? If I have multiple event sheets how do I tell in what order they will be processed, dose it matter?

    Thanks

  • Hi guys and gals,

    So I've programs previously so I'm familiar with functions, I like the way I can group up code and call it when I need to so I'm not cluttering up my screen. When I code in construct 2 I'm not sure how divide up my code.

    So I started putting all my "A start of layout" at the top, but then I found I had a lot of them so I started dividing the code into entities like sprite1, sprite2, etc.

    So how should I do it? I was thinking of using separate even sheets for each entity and another for the layout. So I;d have all the code effecting each entity under there own event sheet and the all my "start of layout" and generic stuff in my layout event sheet.

    Dose it make sense, is there a better way to organize your code?

    Thanks!

  • I must be going blind in my old age, is there a link to the game?

  • The option to create an EXE in r116 is awesome. I've been playing around with it and as you may know it exports you game into an exe and a few DLL's. So I'm thinking this may give us the opportunity to use some of the exe encryptors and exe packers out there to help protect out assets. I know most of us are creating games for free but I'd at least like to explore this option for those that are interested.

    So if your look at the files created when your export your game, you'll notice the creation date on them are all older then when you exported except for the exe. I checked for evidence of my game code being present and only found it in the exe.

    Assumption: Our game code/assets are located in the exe.

    I tested a few exe protectors, some work some don't an example of one that worked was Themida (the WIN32 version) located at: oreans.com/themida.php

    After encryption I couldn't find any plain text in the exe showing my original code.

    No protection scheme is 100% secure (and probably not free) but they may help to dissuade people from trying to crack your games, also some exe protectors come with the ability to evoke trials or process licence keys for your product. Note I don;t know what kind of performance hit this may have on your game, so the protection options may need to be tweaked, I just used the defaults.

    FYI:

    For those that are interested I've created a crypted version of a game I'm working on as a proof of concept, it located here:

    dl.dropbox.com/u/11384284/starcastle.zip

  • Ah nice thx

  • Oh right, OK thanks I didn't realize that it would run every tick unless I told it to run every tick, but it makes sense otherwise you'd only be able to push left once to go left and never go left again.

    So anything told to run at the start of the layout will just run once?

    And what happens if you need a for loop that terminates when a condition is met mid game?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi guys and gals,

    I'm having trouble with using a For loop, my for loop never seems to terminate and was hoping someone could show me what I've done wrong.

    I've attached an example. I got it working but it's messy and uses variables to count the index (without loopindex).

    If you disable the first loop and enable the second then you will see what I mean.

    Thanks,

    ShabbyCat

    dl.dropbox.com/u/11384284/ForLoop.capx

  • That worked perfectly thanks!

  • Hi guys,

    I was working on a remake of an old classic game called Star Castle. Someone on the forums gave me some great advice on how to make the spinning shields using sprites, filters and rotation behavior. But I can't seem to find where in Construct 2 to mimic the same bahaviour. Here's the Construct game file: dl.dropbox.com/u/11384284/StarCastle.cap

    Any tips or hints would be great,

    Thanks.

    Frank

  • I also did this PoC in .Net

    It includes an example application that you can use to "frame" your Scirra games, there were also some initial speed tests taken:

    scirra.com/forum/c2-wrapper-exe-in-c_topic44584.html&sa=U&ei=NRRBT8qoGszImQWXsbzSBw&ved=0CAQQFjAA&client=internal-uds-cse&usg=AFQjCNGI-qs1ju6Vwdp-lragsHDOhyRV0g

    Remember it was just a PoC :)

  • I've been doing some more research on the topic I thought I'd share:

    Want a quick way to make you game to look like an app try renaming the html page created (by default index.html) to .hta (E.g. index.hta).

    XULRunner (https://developer.mozilla.org/en/XULRunner) might be a good alternative from Mozilla. It let's you define web apps E.g. html/javascript that will run on your desktop as an application.

    Titanium App Accelerator (http://www.appcelerator.com/) looks commercial but I believe it is based on Apache licence model. The community edition is free and might be just what we need but I haven't had a chance to test it.

    Pokki (http://www.pokki.com/) Is a nice of example of web apps being rendered on the desktop. Might be nice to convert Scirra Arcade into something similar.

  • Very nice so one method is to store the differing tile images as animations as use something like int(Random(0,Sprite.AnimationFrameCount)) to pick a random animation. That's cool. If you wanted to "tile" around something. E.g. bury a diamond in the dirt I guess you could overlap the diamond at a particular position on another layer then when you grab it you could destroy all the overlapping tiles so you have a hole where it was dug out?