itzathis's Forum Posts

  • Hi,

    You can see in game layout that there is scoring in the top left corner. This text object is named DistanceDisplay. Now in the GAME EVENT you can find a line where this number changes:

    http://screencloud.net/v/7kOO

    So we can assume that TotalDistance is your score.

    Now add Web Storage to the project so we can use it.

    First we need to check if there actually is any highscore so we do this event:

    http://screencloud.net/v/1kBE

    It basically means "on start of the layout check if local key "MyGameNameHighscore" exists, if not then create it set it to 0.

    Now during the game, we want to know if the highscore has been beaten. You can check it every tick or every x time. Just like this:

    http://screencloud.net/v/hLH1

    So... Every 2 seconds check if TotalDistance is greater than value stored at "MyGameNameHighscore", if yes then assign a new value to this key.

    And that's it.

    Now you wanted to view the highscore in the main menu?

    Then try adding a event that checks if the local key exists (at the start of the layout - you did this before).

    If yes, then set an object in the main menu to visible and set it's value to WebStorage.LocalValue("MyGameNameHighscore")

    Let me know if you succeeded : )

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Remember that if you use sprite for the health bar, with the given method this will scale the sprite.

    If you want it to be shortened/lengthened then use Tiled background for it.

    In Tiled background properties you can find "hotspot", this defines how the object width is changed, experiment with it to see how it works.

  • I believe the best would be to use their native resolution

    http://www.iphoneresolution.com/

    I believe 320x480 is the most used resolution for mobile devs although I dont like it so I multiply it by two and work on a slightly bigger screen then allow my game to scale down if it's needed.

  • Hi, the reason behind this is that opacity, believe it or not, does not go straight in 1, 2, 3, 4 numbers but for example from 1.1231 to 2.3424 then 3.4145 and so on with totally random values after a dot.

    You can work this out with System->Is between values.

    This would be something like:

    timeTravelable.opacity

    69

    71

    Try this and manipulate values to see if it works : )

  • Can you send me a capx to so I can check what's going on? : )

  • Yes, they do interact. Main plot is about collecting items falling from the top so I need to use collisions.

  • Hello, recently I've found myself creating a game, which uses a lot of falling objects from the top.

    Imagine something like falling rain, where single drops appear above layout and fall down to the ground.

    So the drops always fall in the same direction and (to simplify) the same speed (no gravitation).

    My question is: which behaviour is the best for this kind of action?

    I can reproduce this movement with various behaviours, the point is, I'm looking for the "fastest" mechanism.

    For example, I tried using:

    Every tick -> Move forward(speed * dt)[/code:2q357iu2]
    But later I found out, that Bullet behaviour works much much faster. 
    
    So I started to experiment, for example with Physics with and without checked 'Bullet' in properties.
    
    I can imagine a lot of possible ways to do this...
    [ul]
    	[li]Physics[/li]
    	[li]Bullet[/li]
    	[li]8 Direction[/li]
    	[li]Hard code[/li]
    	[li]Custom Mov.[/li]
    	[li]Platform[/li]
    [/ul]And so on...
    
    Back to my question, what do you think, which way provides the best performance?
  • Topic can be closed as I've found an artist already : ).

  • It happens always if I use minify. I can try x times and it will give me an error. Interesting fact is that it was working before but suddenly stopped.

  • I can export to anything if I first uncheck minify script.

    Yes, I have 64b Win7.

  • I have latest java installed on my computer. : /

  • Problem Description

    Cannot minify script.

    Description of Capx

    It's a pure, default template of a platformer.

    Steps to Reproduce Bug

    • Export to html5
    • Check minify script
    • Get error.

    Observed Result

    One time I got this message:

    [quote:2uyap5jn]---------------------------

    Construct 2 Check failure

    ---------------------------

    Check failure! This is probably a bug:

    Minifier did not output a file

    Condition: FileExists(min_js)

    File: html5.cpp

    Line: 1600

    Function: void __cdecl Exporter::DoExport(class era::IProject *,class era::ILayout *,bool,struct HWND__ *,bool,bool)

    Build: release 164 (64-bit) checked

    Component: HTML5 exporter

    (Last Win32 error: 2)

    You are using a 'checked' release of Construct 2, intended for testing, which causes certain errors to be reported this way. Hit Ctrl+C to copy this messagebox - it's useful information for the developers, so please include it with any bug reports! Click 'Abort' to quit (unsaved data will be lost!),'Retry' to turn off messages for this session and continue, or 'Ignore' to continue normally.

    Expected Result

    To export minified script.

    Operating System and Service Pack

    Win7 64b SP 1

    Construct 2 Version ID

    r164

  • Hello

    I'm looking for an artist to my project I've recently started working on. I can do all the programming work.

    Design of the game is up for discussion, but I'm looking for a happy, colourful style, for example like in Sushi Cat.

    Main theme of the game is an adventure in wide world, gathering resources, using them to build factories or other buildings, develop your character, and finally build a big shelter from the resources gathered.

    Most of the programming work is done. I just need a good graphics artist to create stunning sprites and animations : ).

    I'm thinking about 50% revenue share.

    If you are interested, message me for further details or email at