I have a start screen where the user chooses an avatar (1 of 10) they also type in their name.
The entered name and chosen avatar then need to appear across the rest of the slides in the project. So it feels like they are 'in a game'. I envisage there to be at least 200 slides.
At the point of choosing these settings, I want to be able to set both these variables once, in one place easily.
I guess I have to label each instance on every slide: Avatar_Slide1, Avatar_Slide2... & PlayerName_Slide1 etc etc - This alone seems a huge task.
Is it possible to have an instance that is set globally across all slides? So that I only need to target and Change State once?
I also tried to use the Master slide but found out I couldn't target elements within it.
Assuming I have to label each instance on every page, rather than having to then write 200+ times:
Change State of : Instance name 1 : ChosenAvatarVariable
Change State of : Instance name 2 : ChosenAvatarVariable
Change State of : Instance name 3 : ChosenAvatarVariable
Where SN = Slide number
Change State of : Instance name[SN] : ChosenAvatarVariable
(I am not a JS programming, but understand the fundamentals)
Any help or advice on this topic is much appreciated.
You talk about the Master slides: does this mean that you use always the same image of a chosen avatar in the same location? In that case use the workflow to put the avatar on the first slide and time it for the rest of the project. At that moment you need only one ID.
It is certainly possible with JS, hope a JS expert will pop in. However I also recommend to have a look at the CpExtra widget (HTML only) created by InfoSemantics Australia. It is a real Swiss knife and you can use it for your purpose as well. More than worth its cost. Here is a link:
You can have a free trial. Warmly recommended (I am not associated with them, be sure).
- Yes, the image will always remain in the same place. The timing! 'Rest of project' I hadn't noticed that before. I will try this.
- I will also look at this widget.
Thanks for your help
Forgot to tell about a limitation with 'Timing for rest of project'. If you are designing a fluid boxes responsive project, this probably will not be possible. Sorry about that.
Use the timed for the rest of the project. You will have a unique ID for it, which you can use in actions if you want to hide the avatar on some slides....
Thank you! I have now implemented this and it works very well
I tried also to use the same approach on a button, am I correct in thinking it is not possible to use 'Timing for rest of project' on a button?
Timed for the rest of the project is only possible with a shape button.