[Plugin] System Manager

Post your completed addons to share with the community

Post » Thu Apr 19, 2012 10:40 am

Current System Manager

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.
Get System Manager v1.05


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

Get System Manager v1.05
Get a simple example for System Manager 1.05


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.

Get System Manager v1.04
Get a simple example for System Manager 1.04


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.


Get System Manager v1.03
Get a simple example for System Manager 1.03


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 DayCodeMasterMike2013-09-07 16:34:06
B
38
S
13
G
9
Posts: 151
Reputation: 8,427

Post » Mon May 28, 2012 8:02 pm

Excelent contribution. I don't know why it hasn't more atention or replies.
B
31
S
4
G
4
Posts: 110
Reputation: 4,588

Post » Tue May 29, 2012 7:48 am

@Hillstrom
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!
B
38
S
13
G
9
Posts: 151
Reputation: 8,427

Post » Wed May 30, 2012 3:53 pm

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!
B
31
S
4
G
4
Posts: 110
Reputation: 4,588

Post » Wed May 30, 2012 6:04 pm

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.
B
38
S
13
G
9
Posts: 151
Reputation: 8,427

Post » Fri Jun 01, 2012 8:18 pm

I need valuable information for my webpage. I am selected hcg diet and hcg keyword for my website. and this information is very important for me.
B
2
Posts: 1
Reputation: 252

Post » Sun Jun 03, 2012 9:56 am

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!
B
38
S
13
G
9
Posts: 151
Reputation: 8,427

Post » Tue Jul 10, 2012 9:21 am

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
B
11
S
1
Posts: 53
Reputation: 1,087

Post » Tue Jul 10, 2012 9:35 am

@nothing1969

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.CodeMasterMike2012-07-10 09:36:26
B
38
S
13
G
9
Posts: 151
Reputation: 8,427

Post » Sat Sep 07, 2013 4:32 pm

A new version is out! Current version is 1.05!

Now the download files are stored as a *.c2addon file, to make it easier to install and update the System Manager plugin.
I have added support for Construct debugger. The data is read only. I have also added support for Construct saving/loading functionality.

A new function is the "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.

See orginal post for information and download link!

Thank you all for your interest and support with this plugin!
B
38
S
13
G
9
Posts: 151
Reputation: 8,427

Next

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 6 guests