Forum Discussion
Buttons not behaving properly when previewing (or publishing) entire project
I have lots of work still to do on this activity, but for now I just want to make the buttons (East, South, West, North) on Slide 3 work properly. Since the grid map is rotated, East should move the explorer up one square, West down one, South right one, and North left one.
When I preview just Slide 3, the buttons work; when I preview the whole project, the explorer gets 'stuck' at random points or goes onto blocked squares. I've checked all my triggers and conditions and can't find the issue. What am I missing? Thanks in advance!
Slide 3 uses the same xPos and yPos variables as slide 1. Variables maintain their value. That means the values xPos and yPos have at the end of slide 1 will be the values they have when the user starts slide 3.
You can either use separate variables for each slides, or reset the values to the default "1" when the timeline of the slides begins.
3 Replies
- JudyNolletSuper Hero
Slide 3 uses the same xPos and yPos variables as slide 1. Variables maintain their value. That means the values xPos and yPos have at the end of slide 1 will be the values they have when the user starts slide 3.
You can either use separate variables for each slides, or reset the values to the default "1" when the timeline of the slides begins.
- CharliePeak-594Community Member
This worked! Thanks so much, Judy. Really appreciate the help.
- JudyNolletSuper Hero
You're welcome! Pay it forward when you can. 😊