Convert empty object into asset/graphic
-
@Lupo in the Main Editor, select the empty object and make sure it's Color Opacity is turned up to white 100%. Select Behaviors, then select Transform. Within Transform, select Set Graphic, then select New Graphic. You should then be prompted to choose a graphic for your empty object.
-
@Cryptic-Level-Studios and @Lupo, actually that doesn't work....empty objects cannot be changed to a graphic.
-
@iTap-Development My mistake, I thought he wanted to "Apply" a graphic to his empty object, because he stated that he still wanted to use the behaviors of the empty object . . . if so, this method still works for me. I just tested it on two new empty objects, added behaviors, set a graphic, and good-to-go.
-
@Cryptic-Level-Studios I don't think set graphic works with empty objects.
-
It is possible to edit the level.sqlite file inside the .tap file and change the object type of each of the empty objects, but I don't know how safe this is.
@administrators could the following query be a problem? It works in my test project with a single empty object with some behaviours:
UPDATE ZOBJECTDATA
SET ZOBJECTTYPE = 'Graphic'
WHERE ZOBJECTTYPE = 'Empty' -
Currently no way to do it within the app. We've discussed adding this functionality, but never really concluded on it (requires some interface changes, and some work on how the app handles the object).
@Jack8680 said in Convert empty object into asset/graphic:
It is possible to edit the level.sqlite file inside the .tap file and change the object type of each of the empty objects, but I don't know how safe this is.
@administrators could the following query be a problem? It works in my test project with a single empty object with some behaviours:
UPDATE ZOBJECTDATA
SET ZOBJECTTYPE = 'Graphic'
WHERE ZOBJECTTYPE = 'Empty'This will do it, and should be completely safe.
-
In that case, if anyone wants all their empty objects converted to graphics, message me a link to the project and I'll do it for you.
-
@Jack8680 how are you changing it?
-
@iTap-Development the .tap file is actually a zip file with a different name, so I open it as a zip and then open the level.sqlite file and run the above query to replace all the 'Empty' object types with 'Graphic'.
-
@Murtaza Maybe just add a way to copy all the behaviours over to another object, could allow highlighting a bunch of behaviours, copying them and pasting them somewhere in that object or another object?
-
@Jack8680 that's cool!
-
@Aidan-Oxley said in Convert empty object into asset/graphic:
@Murtaza Maybe just add a way to copy all the behaviours over to another object, could allow highlighting a bunch of behaviours, copying them and pasting them somewhere in that object or another object?
This kind of suggestion sounds simple in theory. But it's actually really difficult just because HyperPad is so big.
It takes months of planning and development to make sure it's happening safely and your behaviours or objects don't get deleted or corrupt in the process.Additionally UI is very difficult. One of the hardest parts of making HyperPad is coming up with a UI that works on iPad where it is easy to understand, doesn't get in your way, is useful and doesn't look bad. All while not taking a very very long time to develop/ without changing the entire interface and use experience.
There's a lot of stuff like this we want to add... we just haven't come up with the best way of making it usable by users.
-
@Cryptic-Level-Studios Solution would be good but unfortunately doesn't work (just tested)
-
@Murtaza In GamePress you could easily set a new graphic to an empty object. I don't understand why this is not available the same way in Hyperpad? What is the issue to set a graphic to an empty object?
-
@Lupo HyperPad isn't GamePress. It was rewritten from scratch. Certain changes were made for performance reason, and other changes for usability.