peacemaker Expert Licensed User Longtime User Feb 10, 2023 #1 HI, All It's planned to make non-action learning game, where user reads\listens to the learning materials and clicks only for settings and selecting chapters. 1) No fast actions are planned, but constantly animating objects, icons, menus are required: say, staying hero, but moving by the head, closing-opening eyes... 2) and async playback of several music files at the same time, long and short. 3) B4J project is the priority, but cross-planforming is also in mind... 4) Better to make different B4Xpages for different chapters ? 5) Is XUI2D framework OK for such development ? Or maybe any other suggestions ? Last edited: Feb 10, 2023
HI, All It's planned to make non-action learning game, where user reads\listens to the learning materials and clicks only for settings and selecting chapters. 1) No fast actions are planned, but constantly animating objects, icons, menus are required: say, staying hero, but moving by the head, closing-opening eyes... 2) and async playback of several music files at the same time, long and short. 3) B4J project is the priority, but cross-planforming is also in mind... 4) Better to make different B4Xpages for different chapters ? 5) Is XUI2D framework OK for such development ? Or maybe any other suggestions ?
LucaMs Expert Licensed User Longtime User Feb 10, 2023 #2 peacemaker said: 4) Better to make different B4Xpages for different chapters ? Click to expand... Yes peacemaker said: 5) Is XUI2D framework OK for such development ? Click to expand... I think using XUI2D for something without special animations is overkill.
peacemaker said: 4) Better to make different B4Xpages for different chapters ? Click to expand... Yes peacemaker said: 5) Is XUI2D framework OK for such development ? Click to expand... I think using XUI2D for something without special animations is overkill.
peacemaker Expert Licensed User Longtime User Feb 10, 2023 #3 Animation is required, yes. Mouse control mostly, no keyboard, as i understand. I guessed that for many animating sprites on the screen - some game engine is better than lots of icons lists and timers... Last edited: Feb 10, 2023
Animation is required, yes. Mouse control mostly, no keyboard, as i understand. I guessed that for many animating sprites on the screen - some game engine is better than lots of icons lists and timers...
ilan Expert Licensed User Longtime User Feb 12, 2023 #4 peacemaker said: I guessed that for many animating sprites on the screen - some game engine is better than lots of icons lists and timers... Click to expand... this is true especially for ios. since xui2d is cross platform it is a good choice. you can also use the implemented 2d physic engine with xui2d. normally for simple animations the core library is good enough but again if you would like to extend the app in the future with more advanced animation or maybe physics then it is better to write the app using a game engine from the beginning than later re-write the whole app. xui2d is a good choice!
peacemaker said: I guessed that for many animating sprites on the screen - some game engine is better than lots of icons lists and timers... Click to expand... this is true especially for ios. since xui2d is cross platform it is a good choice. you can also use the implemented 2d physic engine with xui2d. normally for simple animations the core library is good enough but again if you would like to extend the app in the future with more advanced animation or maybe physics then it is better to write the app using a game engine from the beginning than later re-write the whole app. xui2d is a good choice!
peacemaker Expert Licensed User Longtime User Feb 12, 2023 #5 Is it possible such animating hero (or any other menu, button, object), not static ? Over the background and under the control buttons...layers and mouse clicking each.
Is it possible such animating hero (or any other menu, button, object), not static ? Over the background and under the control buttons...layers and mouse clicking each.
ilan Expert Licensed User Longtime User Feb 12, 2023 #6 peacemaker said: Is it possible such animating hero (or any other menu, button, object), not static ? Over the background and under the control buttons...layers and mouse clicking each. View attachment 139207 Click to expand... yes sure this is possible. if you use a panel and get the xy from the panel touch then you can animate the eyes to look to that point etc. the same is also possible with xui2d don't see anything special here
peacemaker said: Is it possible such animating hero (or any other menu, button, object), not static ? Over the background and under the control buttons...layers and mouse clicking each. View attachment 139207 Click to expand... yes sure this is possible. if you use a panel and get the xy from the panel touch then you can animate the eyes to look to that point etc. the same is also possible with xui2d don't see anything special here
peacemaker Expert Licensed User Longtime User Feb 12, 2023 #7 I mean - how "hard" to make such animating hero ? Without a game engine i would prepare some frames and looped them by the timer. Is it simpler anyhow in xui2d ?
I mean - how "hard" to make such animating hero ? Without a game engine i would prepare some frames and looped them by the timer. Is it simpler anyhow in xui2d ?
ilan Expert Licensed User Longtime User Feb 12, 2023 #8 peacemaker said: Without a game engine i would prepare some frames and looped them by the timer. Click to expand... u can use the same approach with xui2d. if you have a spritesheet and want just to show an animation by looping through the spritesheet than the same can be done in xui2d but i dont know if this is what you really want. i though the eyes are pointing to the direction of the mouse. in this case it must be done differently. the question is what you really want to archive. you can do anything in xui2d that can be done without xui2d. the principal is the same. the benefit of xui2d is that you also get better performance then just using b4xcanvas and also you have box2d implemented (physic engine) and of course that it is cross platform. have a look at this: Pizza Antonio - Game in progress I am working on a very old project that i planned to do long time ago but had no chance to do it. and now i devcided it would be a good practice to learn xui2d better. the idea is very simple you have a pizza and a hand that hold each time a different vegetables and you decide when to throw... www.b4x.com this is a project i stated long time ago (never finished) it is using xui2d. the animation for the fire is just looping between frames but everything else uses physic bodies.
peacemaker said: Without a game engine i would prepare some frames and looped them by the timer. Click to expand... u can use the same approach with xui2d. if you have a spritesheet and want just to show an animation by looping through the spritesheet than the same can be done in xui2d but i dont know if this is what you really want. i though the eyes are pointing to the direction of the mouse. in this case it must be done differently. the question is what you really want to archive. you can do anything in xui2d that can be done without xui2d. the principal is the same. the benefit of xui2d is that you also get better performance then just using b4xcanvas and also you have box2d implemented (physic engine) and of course that it is cross platform. have a look at this: Pizza Antonio - Game in progress I am working on a very old project that i planned to do long time ago but had no chance to do it. and now i devcided it would be a good practice to learn xui2d better. the idea is very simple you have a pizza and a hand that hold each time a different vegetables and you decide when to throw... www.b4x.com this is a project i stated long time ago (never finished) it is using xui2d. the animation for the fire is just looping between frames but everything else uses physic bodies.