Gamified learning is an instructional strategy that motivates students to learn, and the use of multiple representations assists learning by promoting students' thinking and advanced mathematical problem-solving skills. In particular, emergency distance learning caused by the COVID-19 pandemic may result in a lack of motivation and effectiveness in learning. This study designed an online gamified learning activity incorporating multi-representational scaffolding and compared the differences in the learning achievement and motivation for the gamified activity and general synchronous distance learning. In addition, for the group that conducted the gamified learning activity, we measured the participants' flow, anxiety, and emotion during the activity. A total of 36 high school students participated in the experiment. The results indicated that the gamified learning activity was not significantly effective in terms of enhancing learning achievement. In terms of learning motivation, a significant decrease in motivation was found for the group using general synchronous learning, while a significant increase in motivation was found for the group using synchronous gamified learning. This indicates that despite the negative impact of the pandemic on learning, gamified learning still enhances students' learning motivation. The results of flow, anxiety, and emotion showed that the participants had a positive and engaged experience. Participants provided feedback that the multirepresentational scaffolding facilitates learning.