[Suggestion] Updates to objects

Discussion and feedback on Construct 2

Post » Tue Sep 15, 2015 2:38 pm

Form objects
On focus - When a form control gets focus this will trigger true.
On focus lost - When a form control looses focus this will trigger true.
Has focus - When a form control has focus this will trigger true.

This is inspired by a 3rd party plugin capable of doing this, so thought it would be good to add so its part of the standard form controls, since its possible.
B
44
S
11
G
2
Posts: 1,181
Reputation: 6,816

Post » Fri Sep 25, 2015 10:24 am

Collision object
This is not a functionality in C2, so its more of a suggestion.

The idea is to be able to add an empty invisible collision object instead of having to use sprites, which is the normal way of doing it now as far as I know. But doing this uses a lot of memory for no good reason. So what this object would do, is to make it possible to specify an area kind of the same way you would set up a collision mesh on a sprite, but this would be done in the layout, instead of in the graphic editor. The object would work in the same way as a sprite would when it comes to collision detection, but wouldn't be able to hold any form of graphical information, thereby making it possible to use more complicated collision solutions that wouldn't eat up memory for storing empty sprites.

So basically the object simply keep track of a collision mesh, maybe with the ability to manipulate it at runtime and whatever other functionality could be found useful.
B
44
S
11
G
2
Posts: 1,181
Reputation: 6,816

Post » Thu Oct 01, 2015 9:20 am

Rotate objects
The general idea is to extend the rotation of objects. As it is now they rotate around there origin. So adding two new options could be very useful, I think.

Rotate around imagepoint - Instead of rotating around origin, you can choose whatever imagepoint on the object you like and it will rotate around that point. (Could maybe just replace the normal one, as it does exactly the same. And the origin could just be set by default.)

Rotate around position - Same as above except you can specify a X,Y position and the rotation will happen around this point.
B
44
S
11
G
2
Posts: 1,181
Reputation: 6,816

Post » Fri Oct 30, 2015 2:54 pm

Screen resolution
A way to get more control over the resolution when the "Fullscreen in browser" settings doesn't cut it.

Get screen resolution - The ability to get the screen resolution set in windows/OSX.

Set screen resolution - The functionality to change screen resolution to suit what you need. Like you can in pretty much any modern computer game today.

On screen resolution change fail - Will trigger if the change fails.

On screen resolution change done - Opposite of when it fails, will trigger when the resolution have changed successful.

Form controls

Disable tab - Will exclude a form control from appearing in the tab index list so it can't get focus.
B
44
S
11
G
2
Posts: 1,181
Reputation: 6,816

Post » Thu Nov 05, 2015 2:53 pm

Delete object warning
This is an improvement or extension to the warning that you get when you want to remove an object from your project. Normally when you do this you get a warning telling you that it will remove all actions, conditions and expressions related to the object. Which is really nice, however when you are working on big projects and you might not recall all the places where this object might have been used etc. The removal can cause some serious problems if you are not careful and normally, at least for me I keep an eye on the number of event in the status bar to see if it changes when I remove an object and if it does I can undo and then check through the project to make sure that it wont cause problems before I do it.

What would be nice and since C2 already have to go through the project deleting the actions, conditions etc. when you press yes. Would be if it in the warning message wrote how many actions, conditions, expressions it would delete, so you would know what impact it would have.
I can't imagine that being a difficult thing as it already "scan" the program when removing it. So it could just "scan" and count the elements without deleting them before pressing yes.
Just a small extension that I think would be handy.
B
44
S
11
G
2
Posts: 1,181
Reputation: 6,816

Post » Mon Dec 07, 2015 10:57 am

Support for multiple aspect ratios
The fullscreen in browser settings are really nice when you want your game to support several resolutions. However a huge limitation occur when you want to support multiple aspect ratios.

For instant the most common used ratios are 16:9 (1680x1050) and 16:10 (1920x1080), however there are no way, as far as I can see that you can make your program support both of these correctly when using "Request fullscreen in browser". And regardless of which method you use (Scale outer or letterbox scale) you are left with black bars either in the top and bottom using letterbox scale or only bottom using Scale outer. Since C2 can already support a single aspect ratio, extending this to be able to support multiple ratios would be a huge improvement I think.

As an extension to the former suggestions regarding "Screen resolution", it would be nice with the following.

Get system aspect ratio - Would return the aspect ratio of the system.

Extend the fullscreen browser methods - The ability to tell C2 to target specific aspect ratios, so instead of just "letterbox scale" it would be "letterbox scale - (16:10)", "letterbox scale - (16:9)" and so forth. These methods should also be available in the browser object when requesting fullscreen mode.
Last edited by nimos100 on Tue Dec 08, 2015 12:56 pm, edited 2 times in total.
B
44
S
11
G
2
Posts: 1,181
Reputation: 6,816

Post » Mon Dec 07, 2015 12:51 pm

Pathfinding
-Disable/Enable smooth cornering

Bullet Behavior
-Condition: Is Bullet Enabled

Line Of Sight
-Cone area type/Line type

Pin
-Pin to certain image point, not only origin
B
16
S
4
G
1
Posts: 203
Reputation: 1,558

Post » Tue Dec 08, 2015 12:52 pm

Bound to layout behaviour update
The bound to layout is a quick way to keep objects within boundary limits. However this behaviour runs into problems if objects that fits the layout are suddenly rotated. In this case the object will start flickering as it tries to stay within the layout. So a minor update to this behaviour could fix it.

Fit to layout - When this is turned on, an object will automatically scale to fit the layout in case it becomes to big.
B
44
S
11
G
2
Posts: 1,181
Reputation: 6,816

Post » Wed Dec 09, 2015 6:46 pm

nimos100 wrote:Collision object
This is not a functionality in C2, so its more of a suggestion.

The idea is to be able to add an empty invisible collision object instead of having to use sprites, which is the normal way of doing it now as far as I know. But doing this uses a lot of memory for no good reason. So what this object would do, is to make it possible to specify an area kind of the same way you would set up a collision mesh on a sprite, but this would be done in the layout, instead of in the graphic editor. The object would work in the same way as a sprite would when it comes to collision detection, but wouldn't be able to hold any form of graphical information, thereby making it possible to use more complicated collision solutions that wouldn't eat up memory for storing empty sprites.

So basically the object simply keep track of a collision mesh, maybe with the ability to manipulate it at runtime and whatever other functionality could be found useful.



I like this idea and I agree.
B
28
S
11
G
20
Posts: 723
Reputation: 13,662

Post » Mon Dec 21, 2015 12:55 pm

Timer behaviour
Adding a few extensions to this behaviour would make it more complete and easier to work with.

Stop all - Would allow you to stop all timers running for an object, regardless of the tag.
Pause timer - Would allow you to pause a timer using its tag.
Pause all - Same as above but would just pause all timers regardless of tag.
Resume timer - Would allow you to resume a paused timer using its tag.
Resume all - Would resume all paused timers for the object.
B
44
S
11
G
2
Posts: 1,181
Reputation: 6,816

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests