Hi,
I have two layouts (L1 & L2) with both an eventsheet (ES1 & ES2) and one common eventsheet (ES_common) that's included in both ES1 & ES2.
In ES1 & ES2 there is an event MoveSprite.
Is ES_common I have an event Keyboard(On [Space] Pressed).
What I want is to call 'MoveSprite' from ES_common.
If L1 is active it has to call 'MoveSprite' in ES1.
If L2 is active it has to call 'MoveSprite' in ES2.
Before the new build in function it worked. But now two functions can't have the same name.
My workaround now is to create two functions moveSprite1 & moveSprite2.
In ES_Common is use two conditions:
LayoutName = "L1" -> Call moveSprite1
LayoutName = "L2" -> Call moveSprite2
(This is of course a very highly simplified project)
Is there a more elegant way to solve this?
project file: drive.google.com/open
Thanks
Wim