danialgoodwin's Forum Posts

  • Unfortunately, I don't think C2 has this feature. At this time, you will have to use a third-party feature. But, I haven't looked them up yet to see what everything they have to offer, if they even do offer it at all.

  • awmace5, thanks for sharing. I took a quick look at Project Spark before, but never actually got into it. I'm happy to hear C2 beats it. I also really like how easy C2 is and how much it is like traditional coding.

  • Another idea is System."Pick nth instance", assuming that Player1 is created first, then the 0th instance will always be Player1.

    A possibly better idea is to somehow use Families. Put each of the Player sprites in a single Family and call that family to do the certain events/actions.

    • Is this a single user with four players to play? Or is your game four players local? Four players online?

    And, I'm not sure about your bug. I agree with AllanR, would you mind showing us a CAPX or screenshot of that section of code?

  • In the paid Construct 2 version, you can create Containers, which is basically an object made with many objects.

    Also, something that may be helpful is using an event sheet that is included in all your other event sheets with events/functions that are common to each of them.

    Ex: In the current game I'm creating, I have an event sheet called `GlobalLevel`, and I have three layouts and event sheets called `Level01`, `Level02`, and `Level03`. My `GlobalLevel` event sheet in included in each of the levels. Why? My `GlobalLevel` has about 50+ events in it that are common to each of the levels. My level event sheets have about 1-3 events in them, in which all I do it change some global parameters/variables and then called my start level function in `GlobalLevel`. This setup has saved me tremendous amount of work, made things easier to read, and very easy to create entirely new levels. It may or may not also work for you.

  • I would like to keep in local information about levels to let's players play even if there's offline.

    Can i use Webstorage for this kind of use? or what should i use?

    If i choose local storage (seems to be better for the behaviour i want) when occurs the cache clearing? can i force the cache clearing?

    Yes, you can use Webstorage offline, it does not require an Internet connection.

    I'm not sure about how to force the cache to clear using C2. Though, what is your ultimate goal and reasoning for clearing the cache? Just in case you have newer data online?

    When you create/publish new updates, then you should be incrementing your C2 version number (found in project properties). I believe browsers use this information in the offline.appcache file to determine whether or not it should try to download new assets. It's been awhile since I've last used it, so I forget the exact details.

  • LimonSpace, the easiest way to pause on unfocus is to click on your project name in the projects bar, then scroll down in the Properties bar until you see the option "Pause on unfocus", then set that to yes. The game would then be paused for that user.

    But, since you have a multiplayer game, you may want to pause the game for all players. So, here's the steps to handle that event:

    1. Add the Browser plugin to one of your layouts.

    2. Create a new event for Browser."On suspended" and Browser."On resumed". These can be found at the bottom in the "Page" section.

    3. Add what you want to happen, like a timescale of 0, and sending a message to all other players to also pause.

  • PePPo, since nobody has mentioned it yet, you can try changing all your C2 graphics to 8-bit PNGs rather than the default 32-bit. Hopefully, this will allow you to publish now and give you more time to figure out how to get the assets from a server, from within the app.

  • Somebody made a few tutorials that were made in C2 and "played" as an HTML5 app, but I think it was more like a click-through tutorial. I like the idea of learning while playing a game.

    Hmmm, one would almost have to totally rebuild C2 within C2...

  • suatozkan1987, well, you're not giving us much information to go on. Looking at the code snippet you shared, it should definitely work on any platform. So, I'm pretty sure that you have a bug somewhere else...

    If you would like more help, then sharing a CAPX might work, or at least more code.

  • Doc Ai, for the games I have created so far, I haven't needed to create characters, per se. But, I have created some random objects, textures, and fancy text which I am proud of. Here's one graphic from my recent Windows 8 app, Coinqueror. Each part is on a separate layer, so six layers total.

    Thus, my coin bomb:

    <img src="http://simplyadvanced.net/dev/paintdotnet/examples/coin-bomb_1000x1000.png" border="0">

    ps - And, for other people who want to see more things possible with Paint.NET, they have a page dedicated to show off works.

  • pixel perfick, I agree, there seemed to be plenty of times the character wasn't actually touching the skulls, but still died anyways. Especially, when I got close to a skull then "jumped", I guess the hand would suddenly reach out and try to touch the skull.

  • Great game! It definitely was a good level of challenge.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think one of the ideas for the foundation of C2 is that the tools be as intuitive as possible. Having things that sudden don't work isn't a good idea.

    Though, one idea is to have another boolean for sprites for "Always maintain aspect ratio". But, it's easy enough to manually do that. Just like an easy way to know the individual scales is using something like what jayderyu said.

    Another idea, is that whenever your set scale for a sprite, then you can have an instance variable that keeps track of that scale. Thus a comparison can easily be done with that.

  • Yep, plenty of different programs to choose from. Nobody should feel like they only have to use just one.

    Joannak, I hear Paint.NET developers are working on a huge revamp for v4.0. It'll probably at least include the Ribbon bar like in C2 and all the new Microsoft products like Office and File Explorer. Then, maybe, it might feel less clunky.

  • Tekniko, I just watched your pause button video. Well done! I'm happy to see the higher quality videos coming out for C2. If you keep this up, then you'll definitely be the go-to name for C2 video tutorials. I look forward to seeing more. =]