Game with adding, hiding and showing buttons

elawson8819
Community Member Posts: 2
To anyone who understands JavaScript and Lectora Publisher. I haven't JavaScripted in years, so what I have created isn't working at all.
I have a game I am creating where someone clicks on a button and then it reveals a new button on the other side of the screen. Each time that first button is clicked a new button appears over the previous button on the other side of the screen. The buttons that show are not to disappear until after specific actions are finished on the screen. Because of how this game works, I wanted to allow the user to loop through each button shown after it is revealed and has not disappeared.
I have tried several none JavaScript methods to no success. If someone can help me with developing the code that would work, that would be great.
I have a game I am creating where someone clicks on a button and then it reveals a new button on the other side of the screen. Each time that first button is clicked a new button appears over the previous button on the other side of the screen. The buttons that show are not to disappear until after specific actions are finished on the screen. Because of how this game works, I wanted to allow the user to loop through each button shown after it is revealed and has not disappeared.
I have tried several none JavaScript methods to no success. If someone can help me with developing the code that would work, that would be great.
Comments
-
wheels Florida USACommunity Member, Administrator, Moderator, Rockstar Manager Posts: 665 eLearning ROCKSTAR Admin TeamHi Erin,
Thanks for the challenge, I guess I can't help myself!
I think I was able to do what you are trying to do with pure Lectora Objects, Actions and Variables.
It will only add up to a static number of buttons, but I would imagine more than 20 or so would be too much.
Please download the attached title and give it a try! You import it as a Lectora Online PKG file.
- Joe -
wheels Florida USACommunity Member, Administrator, Moderator, Rockstar Manager Posts: 665 eLearning ROCKSTAR Admin TeamHi Erin @elawson8819 I was hoping to know if my example helped you. I would like to know more about how this game would work and see if we could make something cool to share in the Shared Content section.
-
Categories
- 35.8K All Categories
- 108 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 28.9K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 22 ELB Learning Content
- 22 ELB Learning Content Discussions
- 321 CenarioVR®
- 188 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 41 Rockstar Learning Platform®
- 38 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 5 The Training Arcade®
- 5 The Training Arcade Discussions
- 934 All Things eLearning
- 36 eLearning Development
- 546 Learning Management System (LMS) Integration
- 332 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products