danialgoodwin's Recent Forum Activity

  • lennaert, good game! Works great.

    The first level, I played by using as few missiles as possible. The second level involved constant missiles flying and exploding, just because I could. ;)

  • Hmmm, my entire games are put into functions and I haven't had trouble yet. Though, it would be nice to have the function names as a constant global variable rather than a hardcoded value, but I hear at least that's being worked on.

    nimos100, and others, how many parameters do you typically use in your functions?

  • I'll just create a layer beneath with the background color I want. :).

    Alright, I'm glad you found a solution. =]

  • list3ner, I'm not sure what your skill level with Android is, but you could make your own wrapper with whatever code you want. Basically, you just need to create one basic Android app that has a single Activity/page with just a WebView in it. In the Java code, you would then navigate to the local source HTML w/Javascript file that is exported from Construct 2.

  • suatozkan1987, Have you tried using the debug mode yet? (Ctrl+F5 or "Debug layout" button in ribbon)

    Using this feature allows you to see what the value of every variable is. Maybe, you'll notice something isn't changing that should be.

  • Doc Ai, how are you trying to edit the sprite font? Can you please be more specific? Also, what does it currently look like, and how would you like it to look? The "black/grey and white" squares that represent transparency shouldn't be affecting your work at all.

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

danialgoodwin's avatar

danialgoodwin

Member since 24 Dec, 2012

None one is following danialgoodwin yet!

Connect with danialgoodwin

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies