I’ve begun working on this project in order to teach myself about classes and tweens and to try and achieve bringing together of a full set of application elements; screens, UI elements, user interactions, data handling, etc, etc. After trying, and failing, to implement classes in another project, I looked for an idea that I thought I could implement within a reasonable timeframe, say a couple of months (given limited time available to code). Very much in awe of Luatee’s demos in his building project showing slick interfaces for users to add objects to the screen (I wish I could code that!), learning that tweens do not animate objects per se, rather they interpolate over ranges of values, and then seeing an animation flip book on a desk at work, the idea for the project was born!
Anyway, cut to the chase… I would appreciate any and all advice on how to proceed.
The basic tenet is for a user to be able to add objects to an animation; I’m sticking at first to straight lines, ellipses and rectangles, all black outlines on a white canvas to start with. Similar to PowerPoint, once a “frame” is drawn, it can be copied and the objects can be moved about and resized so that a transition occurs. Each frame has a time period, over which the objects are moved from their positions in the previous frame to those in this frame on a linear path (again, at first, I can’t handle too much complexity). The user repeats adding frames as needed, and moves/sizes objects in any frame, checking the animation works. Ideally, they can record the video and export it at the end. Animations can be saved, edited, copied, deleted, etc.
So, I think I should I have an animation class and a frame sub class, with object positions varying between frame instances. Is this sensible? I have begun storing the objects’ positions per frame in tables, but should I use a mesh per frame? How best to store/retrieve values to pass to the tween functions to display the animations? Can mesh rects be tweened? Any other thoughts, limitations of the idea, suggestions, advice to give?
Many thanks in advance, I am already indebted to many of you.