AnimatedImage can not work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-10-24 5:45 PM
I add three AnimatedImages in a screen, but only one can work normal.
I transplant 'Knight Hits Zombie Game' code and bring my own project, the Zombie and Head AnimatedImages can not play but the Knight AnimatedImage work normal. (The Zombie and Head show the first image but can not show the others).
- Labels:
-
TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-10-24 11:42 PM
Solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-10-25 2:15 AM
Hi,
Good to hear it works :thumbs_up:. What board were you using ? What was the issue and the fix ? Was it due to an issue with the external flash loader ?
/Romain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-10-25 2:23 AM
I ported the program to my own board used 320 * 170 touch screen.
I close the timestamp and the random function cannot work. (CortexMMCUInstrumentation.cpp)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-06 1:51 AM
Where can I get the source code of Knight Hit Zombie game?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-06 4:12 PM
Used "TouchGfx Desinger" could generate the source code of Knight Hit Zombie game.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-06 11:25 PM
Thanks you, I don't know it's an example already available in ToughGFX.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-06 11:28 PM
Hi,
You can find it in the Demos tab in TouchGFX Designer.
/Romain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-07 12:15 AM
Thanks you, I got it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-07 2:20 AM
Hello, I use Random function in Utils.hpp but it's always return the same value. Can you help me?
class Utils
{
public:
static int randomNumberBetween(int lowest, int highest)
{
#ifdef SIMULATOR
return (int)(lowest + (highest - lowest) * (rand() / (float)RAND_MAX));
#else
uint32_t random = (touchgfx::HAL::getInstance()->getCPUCycles() * HAL::getInstance()->getCPUCycles());
return lowest + (random % (highest - lowest));
#endif
}
};
