Can I add a new Action to Style Alternates of a given Element?

Hi, new here :slight_smile: I’m creating a watch face for myself that’s based on Super Mario World. Right now, I have Mario walking center screen as a GIF. I’ve set the Action to Tap > Change Media, so I can tap him to make him jump by swapping it to a different GIF. It just loops the jump, but I’m fine with that, since I can’t find a better way.

My problem right now is, I want to have multiple Styles so I can have Mario and Luigi with different powerups/states (e.g. flying with cape, swimming, etc.). So I would like to add a custom animation for each Style when I tap the screen. But as far as I can tell, there’s no way to do this; when I map the Tap Action to the original Mario GIF, it applies the same media change no matter what the Style is. So even if I’m on Luigi’s Style, with a GIF of Luigi walking (the Style alternative to Mario walking), if I tap on it, I just get Mario jumping again.

Would love to know if there’s some kind of workaround for this or if I’m just out of luck! I’ve already shredded a few plans based on the limitations of WFS, and I’d hate to do away with any more cool ideas.

Similar question was posted here Make Animation change with theme / style? but did not have a clear response, or maybe I’m just misunderstanding.

Hello,
Welcome to this forum. Could you please check out this blog Using Animation to Create Dynamic Watch Faces | Samsung Developer, this may help you in animation?

1 Like

Hi! I checked out that article, but it doesn’t have any information about the specific problem I’m running into. I’ve looked around in the guides, but I don’t see anything as specific as what I’m talking about.

I will try to reword my question to be more concise. A given element (in my case, an animation .GIF) has an Action > Tap > Change Image applied. It also has a Style alternate image applied.
When on Style 1, a “Tap” replaces the image just fine.
When on Style 2, a “Tap” still replaces the image just fine, but it replaces the Style 2 version of the element with the image alternate added for Style 1, which in my case have different style palettes and is jarring.
What I would like to know is: if a given element has both an Action > Change Image set, and a Style Alternate set, is it possible to apply a different Change Image according to what Style Alternate the user has chosen?

Can you please share a sample project?

Sure! Here it is:
mario_example_project.zip (198.8 KB)
This has no other elements, so we can focus on the problem at hand. In the project, you will see 2 Groups, Example 1 and Example 2.

In Example 1, we have one element (little_mario_walk) which has an Action > Tap > Change Image applied, that will appear to make little Mario jump. The element also has a Style alternate, so that the user could swap styles and have little Luigi on their screen instead. However, switching to Style 2 and tapping on little Luigi still replaces the image with jumping little Mario, so this does not work. It would be nice to be able to have different Change Image options for different Styles of an element, but apparently that is not possible now.

In Example 2, we have 2 elements (little_mario_walk & little_luigi_walk). In this example, each element can have its own Action > Tap > Change Image applied. So tapping on little Mario should make Mario jump, while tapping on little Luigi should make Luigi jump. In order to be able to display both, we have created Style alternates, so that Mario appears in Style 1, while Luigi appears in Style 2.
The issue with Example 2 comes from the fact that the Action > Tap only applies to one element at a time, and in this case, because the elements are overlapping on the watch face, it will always trigger the element higher in the order (little_mario_walk).

I have just about given up hope for making this work the way I would like. It would be so cool to be able to switch Styles to, for example, Fire Mario, and when you tap him he shoots fireballs, then switch to Cape Mario and when you tap him he spins! The only way I can see this being possible is if you could actually hide an element entirely according to the selected style, so that it wouldn’t get in the way of the other elements that would otherwise overlap with it.