[Plugin] System ManagerForum Home > Construct 2 Development > Plugins for Construct 2
Topic: [Plugin] System Manager
Posted: 19 Apr 2012 at 10:40am
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.
New version is out. Current version is 1.04!
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!
- 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.
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.
Get a simple example for System Manager 1.04
- Added resolution option (800*600) to LayerUpdatePositionInNewResolution"-function and "LayoutUpdatePositionInNewResolution"-function.
- Changed the expression "GetSystemTime" to "GetSystemDate", which makes more sense.
"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.
This expression, that returns the current time in hours/minutes/seconds as a string.
Get a simple example for System Manager 1.03
- FIX: Issue with objects that is set as "Pinned" didnt correctly translate to the object they were pinned to, is now fixed.
"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):
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!
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
Edited by CodeMasterMike - 03 Jun 2012 at 9:57am
|Post Options Quote Reply Posted: 28 May 2012 at 8:02pm|
Excelent contribution. I don't know why it hasn't more atention or replies.
|Post Options Quote Reply Posted: 29 May 2012 at 7:48am|
I'm glad you like my contribution!
Hopefully many people use it and like it so much that they don't have time to write a reply!
And with this reply I would like to announce that I have made some updates to the plugin! Current build is now v1.03!
See Orginal post for more information!
|Post Options Quote Reply Posted: 30 May 2012 at 3:53pm|
Downloaded, i have a question about your implementation:
It works even if i put fullscreen a web browser on ios/android/pc?
Also could be any problem if an application is ported to native with wrappers like cocoonJS or appmobi?
If it works "no matter what" it's really a time saver.
Cheers for the new release!
|Post Options Quote Reply Posted: 30 May 2012 at 6:04pm|
All functions should work both in windowed and full screen mode.
I havent tried it with Cocoon JS since I cant install their launcher on my android, but last time I tried it on appmobi and phonegap it worked. I dont own a Iphone either, but it should work there as well.
But I have to wait until the hardware accelerated build wrappers on both appmobi and Cocoon JS are released before I can really say if it works in the native mode on mobile phones with their wrappers. In software mode rendering its working.
|Post Options Quote Reply Posted: 01 Jun 2012 at 8:18pm|
|Post Options Quote Reply Posted: 03 Jun 2012 at 9:56am|
A new version is out! Current version is 1.04!
In this updates I added a highscore system in the new category "System highscore".
This is a simple highscore system with two colums (String and NUMBER), that you
can sort with either descending or ascending, in either of the two columns.
You can easily add, remove or update a element in the highscore list, making it
very easy and fast to use. No more need to waste more time when you need a
highscore system for your games!
Another new, very nice action is the "Set relative position"!
This action repositions a object so it stays at the same place regardless if the
size of the window changes.
This action works just like the anchor behavior, but you can set a new position for
the object in any time runtime without any problems!
Note that this function is not created or intended to use as a "character" that needs to be translated!
Thank you all for your interest and support with this plugin!
|Post Options Quote Reply Posted: 10 Jul 2012 at 9:21am|
I am not sure with what you said, there is a risque to use this plugin? In fait, it's really interesting, I'd like to try it anyway
|Post Options Quote Reply Posted: 10 Jul 2012 at 9:35am|
The only "risk" there is, is if you are using a old version for a project, and then update to a newer version, your project may in rare moments produce a error, which you have to revert back to the old version for that project to make it work again.
This is mainly because some things change in a new version, that your existing project can't use. Of course I try to keep all versions backward compatible as best as I can.
Edited by CodeMasterMike - 10 Jul 2012 at 9:36am
|Forum Jump||Forum Permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum