Nimtrix's Forum Posts

  • I made a quick and simple example for you, to illustrate how you can use scrolling to control the "view".

    Scrolling.capx

  • Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    
    C:\>tracert scirra.com
    
    Tracing route to scirra.com [108.60.144.14]
    over a maximum of 30 hops:
    
      1     1 ms    <1 ms     1 ms  192.168.0.1
      2    91 ms   113 ms   107 ms  c01E45BC1.dhcp.ventelo.no [193.91.228.1]
      3   105 ms   117 ms   128 ms  ge0-0-0-11.cr1.br.no.catchbone.net [193.75.1.33]
      4   130 ms   146 ms   122 ms  ge0-2-0-2.bergen-solhe3-p1.as2116.net [193.75.2.78]
      5   103 ms   122 ms   118 ms  te0-0-0-4.bergen-larsh-p2.as2116.net [195.0.241.29]
      6   130 ms   131 ms   145 ms  te0-1-0-4.bergen-solhe3-p1.as2116.net [195.0.241.30]
      7    91 ms    86 ms    55 ms  te0-1-0-4.oslo-san110-p2.as2116.net [195.0.240.122]
      8   180 ms   194 ms   193 ms  te5-2-0.cr1.fn3.as2116.net [195.0.241.218]
      9   102 ms   183 ms   138 ms  te6-1-0.cr1.xa19.as2116.net [193.75.3.149]
     10   130 ms   133 ms   180 ms  te5-1-0.br1.xa19.as2116.net [193.75.1.74]
     11   137 ms   175 ms   186 ms  TenGigabitEthernet8-3.ar1.OSL2.gblx.net [64.211.83.13]
     12   185 ms   194 ms   220 ms  atlantic-metro-com.tengigabitethernet6-3.ar8.nyc1.gblx.net [159.63.51.6]
     13   272 ms   250 ms   152 ms  21.ge-0-1.cr1.nj3.amcbb.net [69.9.36.244]
     14   130 ms   212 ms   298 ms  reliablesite.dmarc.nj3.atlanticmetro.net [108.60.144.14]
  • I edited your .capx a bit:

    ChalkBoard_Edited.capx

    All I did was change the collision polygons, and use the "set opacity" action, instead of your animation. Hope it helps.

  • Hi, welcome to the community.

    A ".caproj" file cannot be opened without the project files. You'll need to choose "save as a single file" to save the file as a ".capx" (a compressed file of your entire project), then share that file.

    Also, most of us use Dropbox here, it's fast and easy, with no ads or captcha tags etc..

    That being said, I'd be happy to have a look at your .capx.

  • Add another condition "is animation playing" to the left and right animations and use the name of the eating animation in the condition.

    After that you can invert the event by right clicking, or by selecting it and pressing "I". That should stop the walk animation from playing, if the eating animation is playing.

  • Joe7:

    I could probably store the strings in an array, thanks for the suggestion.

    I want to store the levels in strings, because every string contains a value like "4|4|4|4|4|4|2|4|1|1|4|2|", where I use tokenat to seperate them and put them into an array. The array then defines how the level turns out. (unimportant)

    When starting level 1, I want to read the string "level1". The level will then be created according to the numbers in the string.

    Afterwards, I would like to increase my variable "current_level" to 2, and reset the layout. Then I'd like to read what's in the string "level2", in order to change my level without changing the layout.

    Hope that makes sense, thank you for replying.

  • First of all, you can't share a .caproj file on it's own, you have to either share the whole folder, or preferably, save as a single file (.capx).

    That being said, I'm not going to install any plugins to view your file. (Someone else might though)

    Now, for the charge. I don't know how the Megaman charge works, but here's how I would do it, hope it helps:

    ChargeBar.capx (r88)

  • Hey guys, I'm currently working on a game where my levels are made out of a different combination of numbers represented by a string.

    Global text level1: "xxxxxxx"

    Global text level2: "xxxxxxx"

    etc..

    I was looking to change levels easily by using a variable "current_level", and an expression like this:

    "level" & current_level

    Similar to this solution for layouts.

    However, the expression only returns a string "level1" and won't identify it as the global text level1.

    So my question is: How can I get the expression to refer to the strings?

    Am I missing something obvious here, or is this currently not possible? Also, alternative solutions are very welcome.

    Thanks for all replies,

    Nimtrix

  • What you are looking to do is currently not possible in C2.

    I guess you could make a new layout containing one of every object, but I find it easier to just keep the "unnecessary copy" outside the layout, sometimes with the "destroy outside layout" behaviour.

  • Assertion failure: No default instance when creating object. You must have at least one instance of every object type in at least one layout.

    The answer to your question is in your error. You MUST have at least 1 of each object on one of your layouts.

  • I suggest waiting a week or two, and let us know if the problem persists and we can possibly look into it further.

    Tom:

    I have also been having slow download speeds since about the time this thread started. It took me about 40 min to download r88 the other day. (would usually take about 5 seconds)

    I have a 10Mb connection, live in Norway.

    Cheers

  • You do not have permission to view this post

  • Local variables are global variables that are only active under groups or sub-events, and can only be referenced inside that group or sub-event.

    Read about variables here.

  • If you spawn tongues, make sure you destroy them when they disappear. Then you can add a "System -> Compare two values" condition to your spawn event:

    TongueSprite.Count < 1
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There might be some useful examples in the "Isometric" section of the FAQ.