CodeMasterMike's Forum Posts

  • We have, sofar, 6 HTML5 games online on our page:

    http://www.3d-sport.com/games.php (click on "HTML 5 Games")

    Then I know ranma released at least one game for android market:

    http://www.scirra.com/forum/furries_topic49737_page1.html

  • No stress, I just thought I would mention it to you, seeing its still a work in progress <img src="smileys/smiley1.gif" border="0" align="middle" />

    Im interested in to know what your goal is with this plugin?

    As it is now, you cant do much with it.

    What I would like to see, is that it would work just like a sprite, with all sprite functions. And added that you can choose to load a URL sprite into a animation frame.

    Keep up the good work!

  • Really nice plugin, nice work!

    But the plugin doesn't work when WebGL is activated.

    I get a "inst.drawGL is not a function" error message.

  • Yes, the performance on a tablet, as far as I have tried, are not very good.

    Some pointers I have come across when testing against a Android tablet is the smaller textures size you have, the better. I think a smaller window size is also better for the performance.

  • Maybe place a star with a random position:

    X: random(0, LayoutWidth)

    Y: random(0, LayoutHeight)

    and then change the opacity of the star every x seconds, so you get the illusion of its blinking.

  • <center>Current System Manager</center>

    This is a plugin with a collection of different actions and expressions that might come in handy at times. Most functions have to do with resizing and translating objects depending on the screen size.

    Since v1.03 there are some actions for physics as well.

    <center>Get System Manager v1.05</center>

    [Update]

    New version is out. Current version is 1.05!

    Please be aware of due to changes, a new version of System Manager may break your existing current project/s which uses a old version of System Manager. Update only when your current projects are finished, or you may have to re-apply all System Manager functions. Or use a previous version of System Manager until your current project/s are finished.

    Update at your own risk!

    Version 1.05

    • Now the download files are stored as a *.c2addon file, to make it easier to install and update the System Manager plugin.
    • Added support for Construct debugger. The data is read only.
    • Added support for Construct saving/loading functionality.
    • Added "Get object from Object type" condition. This condition searches for a given object and returns it. This condition works similar to the "Pick Nth" system function, but the user can search on a specific variable instead of just a instance value.

    <center>Get System Manager v1.05

    Get a simple example for System Manager 1.05</center>

    Version 1.04

    Updates:

    • Added a new category I call "System position". This category handles certain positioning for objects. See actions for more information.
    • Added a new category I call "System highscore". This category creates a simple and very fast highscore list that takes a name and a value and sorts it either by ascending or descending. These functions are simple to use and simple to update, to make a highscore list very easy and fast to handle.

    Actions:

    Set relative position

    This function sets the relative position of a object regardless to which size the window has. This works much like the anchor behavior, but you are able to set the object/s to a certain position at any time.

    Add element to highscore list

    Add a element to the highscore list. If the element already exist in the list, the

    element in the list will be overwritten with the new data.

    Update element in highscore list

    Updates a existing element in the highscore list.

    Sort highscore list

    Sorts the highscore list in any of the values in the list. The sort can be either

    in descending or ascending mode.

    Remove element from highscore list

    Removes a element from the highscore list.

    Clear highscore list

    Clears the whole highscore list.

    <center>Get System Manager v1.04

    Get a simple example for System Manager 1.04</center>

    Version 1.03

    Updates:

    • Added resolution option (800*600) to LayerUpdatePositionInNewResolution"-function and "LayoutUpdatePositionInNewResolution"-function.
    • Changed the expression "GetSystemTime" to "GetSystemDate", which makes more sense.

    Actions:

    "Set physics gravity"

    With this function, you can set the physics gravity in either or both x- and y-axis in real time. In the orginal physics behavior you can only set in y-axis.

    "Allow physics rotation"

    This function allows to enable or disable physics rotation in-game.

    This enables you to change the rotation behavior on families and/or objects without the need to create a second family/object.

    This can be useful if you have a "easy" level that doesn't allow physics rotation and a "normal" level that do allow physics rotation.

    In the orginal physics behavior you can only set this property before you preview or before you build your game.

    Expressions

    GetCurrentTime

    This expression, that returns the current time in hours/minutes/seconds as a string.

    <center>Get System Manager v1.03

    Get a simple example for System Manager 1.03</center>

    Version 1.02

    • FIX: Issue with objects that is set as "Pinned" didnt correctly translate to the object they were pinned to, is now fixed.

    Actions:

    "Modify layer objects to new resolution"

    "Modify layout objects to new resolution"

    If you have done a complete project in the resolution 640*480, and then you need to do a mobile version with the resolution 320*240, you only need to use one of these functions!

    These functions resizes and translates ALL objects at layout/layer level, from one resolution to another!

    "Modify layer object sizes"

    "Modify layout object sizes"

    Earlier you need to resize all your objects manually and it takes forever.But with thie functions you can resize ALL objects at layout/layer level with a single function! You can resize your objects

    by choosing a operator ( *, /, + or -) and then a value, and you are done!

    "Set scale ratio"

    "Apply scale ratio"

    Thanks to gammabeam's calculation (See his original post):

    http://www.scirra.com/forum/multiple-resolutions-solid-example_topic50496_post318087.html#318087

    You can set this to make sure that a background sprite/s are always filling out the whole window, regardless which size the screen is!

    Expressions

    GetSystemTime

    GetCurrentMonth

    GetCurrentDay

    GetCurrentYear

    If you ever need to get the current system date you can use one of these

    expressions, all as strings!

    GetSystemTime-expression returns Day/Month/Year

    GetCurrentYear-expression returns Year

    GetCurrentMonth-expression returns Month

    GetCurrentDay-expression returns Day

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think the aim sounds very good indeed.

    Would it also be possible with this goal, to write to that json file when the exported project is running in browser/mobile?

    Because that would also make it possible to use save-points for games as well. I dont think it would be a issue if you need to export, lets say, 3 json array files with the project that are gonna be used as three save slots in the game, since Ive seen that in a lot of Nintendo DS games.

  • New update is online! The latest version is now 1.06!

    This update adds a function and a couple of expressions to the plugin, as you can read below:

    Check Counter Value

    This condition function you can compare your current Time Manager Counter, to see if its larger (>), smaller (<) or not equal (!=) to a NUMBER value (regarded as milliseconds). The condition returns true if the check state is correct, false otherwise.

    Convert NUMBER into a Time Manager string!

    It have might happen, where you just simly and fast want to convert a NUMBER variable into a Time String, and you dont wanna convert it yourself. But you dont have a counter to make the conversion for you. But now you do!

    The simple 8 different(!) expressions can easily convert your NUMBER value into a Time Manager string without the need to create a Time Manager counter! Just add the value into the expression and it will return a converted string to you directly, without any fuss!

    I hope this update will be of big use for all of you who uses this plugin. To get the whole change list and more information, go to the top original post and get the new update now!

    Original post

    Thank you everyone for your feedback, suggestions and support! <img src="smileys/smiley1.gif" border="0" align="middle">

  • Pixiefingers

    Are you using the right label name?

    See my simple example here, this example adds 500 points until the time is bigger than 5 seconds:

    http://dl.dropbox.com/u/52716812/GetTimeValueExample.capx

    If this isnt helping you, please add a capx file with the issue, so I can look closer on your problem.

  • I answered Pixiefingers question in the main thread for Time Manager, but I will post the answer here too, in case someone else is wondering:

    Call on the "GetTimeValue" expression, this expression will give you the current value of the counter (in milliseconds). With this value, you can check if its below a given value, in your example, 5 seconds would be 5000 (5 seconds al� 1000 milliseconds). And if the "GetTimeValue" expression is smaller than that, then add 500 to score.

  • Pixiefingers

    Yes, there is!

    Call on the "GetTimeValue" expression, this expression will give you the current value of the counter (in milliseconds), with this value, you can check if its below a given value, in your example, 5 seconds would be 5000 (5 seconds al� 1000 milliseconds). And if the "GetTimeValue" expression is bigger than that, then add 500 to score.

    I hope this will work for you!

  • New update is online! The latest version is now 1.05!

    This update changes some internal functions and names, and should have full backward compability! Some bigger updates are:

    Change base variable for counter

    In a normal counter a second consists of 1000 milliseconds, 1 minute of 60 seconds and one hour of 60 mins. If for whatever reason, you wish to change, so that 1 minute is no longer 60 seconds, but 90 seconds, now you can! Changing from the default values will alter the whole calculation, and a minute will not be added unless it has reached 90 seconds.

    Choose how to display counter values

    When hours, minutes or seconds come below 10 in value, then you can choose if you wish to have a double value (ex. 00, 09, 05) or a single value (ex. 0, 9, 5).

    I hope this update will be of big use for all of you who uses this plugin. To get the whole change list and more information, go to the top original post and get the new update now!

    Original post

    Thank you everyone for your feedback, suggestions and support!<img src="smileys/smiley1.gif" border="0" align="middle">

  • I was so certain that I have been able to add objects like that from the layout tab earlier, but if its part by the design then I must have confused myself somehow.

    I cant drag-and-drop the SDK template plugin object to the layout from the projects tree, or any "type: object" as far as I have tested. I can do it with "type: world" objects. But that is perhaps a different discussion.

    Thanks for the information and fast reply!

  • I have found a issue concerning inserting objects directly in the object box when you are currently on the Event sheet tab.

    1. Open new project.

    2. Go to Event sheet tab.

    3. right click in the object box, and choose "insert new object".

    4. Add whatever object (Plugin, keyboard, mouse etc etc)

    The object is added to the project tree, but is not added to the object box.

    For atleast custom plugins, this means they are not initialized and will not work all together, if data is created/set in the pluginProto.Instance function and/or instanceProto.onCreate function.

    For my custom plugins, this issue only happens when the "pf_singleglobal" is NOT active.

    I also tested with the SDK template, and I got the same issue with the following steps. The only thing I changed in the SDK template, is the "type", which I changed into object, instead of world.

    1. Downloaded the SDK template and added it in the plugin folder under a new folder called "Test"

    2. Open a new Construct project.

    3. Go to Event sheet tab.

    4. Added a "On start layout" condition.

    5. Right click in the Objects box and chose "Insert New object"

    6. chose the "MyPlugin" object from the list.

    The "MyPlugin" appears in the Projects tree, but not in the objects box.

    7. Add "Alert" action to the "On start layout" condition, and wrote "Doooo" in the Message string.

    8. Clicked on the "Run Layout" button.

    The browser is open and the background is white, but no message box appears.

    However, if I do the same as above, but ignore step 3, and add

    the Plugin through the layout tab instead, the Plugin appears in the Projects tree AND in the objects box and is working fine.

  • gamecherry and everyone else:

    New update is online! The latest version is now 1.04!

    I've Changed the expression value for Hours. Instead of showing double "00" when hours is under 10, now will Hours only display a single "0".

    Now it will take a little time before I release the next update, which will be a larger update with some internal changes and improvements. But to make sure the backward compability is honored, it will take some time before I release it. So all next issues and features will be in the next update!

    Thank you all for your support and feedback! <img src="smileys/smiley1.gif" border="0" align="middle" />