Basic animation
Secret of the Basilisk (prototype) » Devlog
In the old engine, there was only the explosion as animation. It consisted of a few particles going in different directions for x amount of time. Now, I want to add animation to images which will change image every x amount of time. The similarities between to two type of animation is the speed between frames and the number of frames.
function AnimationInformation() {
this.name = "";
this.extraReference = null;
this.parts = []; this.startingTime = 0;
this.lastProcessTime = 0;
this.currentFrame = 0;
this.maxFrames = 0;
this.speed = 1000;
this.stopOnEnd = false; this.onFrameChange = null;
this.onEnding = null;
}
This is what I will start with, it seems to be working well for my needs. Every time a new frame is executed, the onFrameChange will be called which just calls a custom animation function. I do store the lastProcessTime and currentFrame but this could easily be calculated based on the startingTime and the speed. And it seems to be working well for now.
Secret of the Basilisk (prototype)
IDLE, incremental game with a bit of a story.
Status | On hold |
Author | Fluffy Lotus |
Genre | Adventure |
Tags | 2D, Idle, Unity |
Languages | English |
Accessibility | One button |
More posts
- How I'll start developing my new gameJan 04, 2020
- Building up the storyNov 25, 2018
- New quest UINov 08, 2018
- UI TweakingNov 07, 2018
- First version of the new gameOct 27, 2018
- Player stats; 1.3 or 13?Oct 18, 2018
- Battle SimulatorOct 15, 2018
- Starting to implement the story!Oct 09, 2018
- Figuring out what to do with experienceOct 07, 2018
- Working on the UISep 28, 2018
Leave a comment
Log in with itch.io to leave a comment.