Hi,
Would you be interested to have IN YOUR GAME, the possibility to edit objects?
Let me explain:
- Be able to move one or more objects with the mouse.
- To be able to resize or rotate one or more objects, thanks to handles, by selecting them with the mouse.
Each object can be selected in three ways:
- With the mouse, thanks to a rectangular selection.
- With a left mouse click on the object + the CTRL key pressed: Select the object if it
is not already Selected or otherwise the Deselect.
- Thanks to its "Is Selected" variable.
Each object will have its own variables, to be able to control the editing of them:
---- Warning: System variable to have information on the object(s) currently in use
edited, the user must not modify them or risk malfunction.
Its variables are useful for use with conditions for example.
------------
- Is currently Selected: Yes or No. (Keep "Yes" as long as it is not Deselected).
- Is currently being moved: Yes or No. (Keep "Yes" as long as the mouse button is pressed to move it).
- Is currently being Resized: Yes or No. (Keep "Yes" as long as the mouse button is pressed on a handle for the Resized).
- Is currently being rotated: Yes or No. (Keep "Yes" as long as the mouse button is pressed on a handle for the rotated).
And why not also (To see):
- Has been Cut (When the object has just been Cut, Keeps "Yes" as long as another editable object is not cut or copied or has not been pasted).
- Has been copied (When the object has just been copied, keep "Yes" as long as it has not been pasted or another editable object has not been copied or cut).
- Has been Pasted (When the object has just been Pasted, Keeps "Yes" as long as there is no other action (Cut, Copy, Paste, Delete) on it or another editable Object).
- Has been Deleted (When the object has just been Deleted, Keep "Yes" until it does not return.
-------------------------------------------------------------------
---- Constraint variables of the object(s) that can be modified by the user:
- Is overlapping with another editable object (during editing) (Another edited object can cross it, move through it, if not, an edited object cannot cross it, cannot be pasted on it either): Yes or no.
- Is Movable: Yes or No.
- Is Resizable: Yes or No.
- Is Pivotable: Yes or No.
And even why not (To see), even more options, such as for example:
Is Vertically / Horizontally Movable: Yes or No:
- Position X Minimum: Ex: 50.
- Y position Minimum: Ex: 100.
- Maximum X position: Ex: 300.
- Maximum Y position: Ex: 150.
- Displacement bearing (Crank) X: Ex: from 10 to 10 Pixels.
- Displacement bearing (Crank) Y: Ex: from 20 to 20 Pixels.
---- Usefulness: Being able to force the object to stay in a specific area.
Is Resizable: Yes or No:
- Top Left: Yes or No.
- High Center: Yes or No.
- Top Right: Yes or No.
- Left Center: Yes or No.
- Center Right: Yes or No.
- Bottom Left: Yes or No.
- Lower Center: Yes or No.
- Bottom Right: Yes or No.
- Minimum resizing width: Ex: 250.
- Maximum width of resizing: Ex: 500.
- Minimum height of resizing: Ex: 100.
- Maximum height of resizing: Ex: 300.
---- Utility: Choose in which direction the object can be resized (handles visible or not) and its Minimum and Maximum size of resizing.
Is Pivotable: Yes or No:
- Minimum angle: Ex: 45.
- Maximum angle: Ex: 90.
- Swivel bearing (Crank): Ex: from 45 to 45 pixels.
---- Usefulness: Choose the angle of rotation of the object (handles visible or not).
And even why not (To see), even more options, such as for example:
- Can be Cut and Paste: Yes or No.
- Can be Copy and Paste: Yes or No.
- Can be Deleted: Yes or No.
And even why not (To see), even more options, such as for example:
- Cancel and Restore a change of edited objects: Yes or No.
---- Usefulness: To be able to return to a previous state.
For example, save the game each time an editable object is changed, and be able to reload it if desired, even after the game is finished.
---------------------------------------------------
Usefulness of such a project?:
- Create super easy level editors.
- Edit an object at a desired time in a game.