This study examines the effectiveness of a collaborative support method in enhancing programming learning outcomes in a serious game. The game Code Hasp was developed to facilitate the comparison between two support methods, worked examples and a collaborative peer support approach. A total of 111 elementary school students participated, divided into two groups. The experimental group received collaborative support from teammates alongside worked examples, while the control group relied solely on worked examples. Pre- and post-test results and in-game data revealed that the collaborative support method improved learning efficiency and problem-solving skills. A notable effect of the process was the emergence of a leadership role in most collaborative groups. The game’s support design and shared goal structure mitigate potential problems associated with unbalanced participation. These findings suggest that collaborative support systems in serious games are a promising strategy for promoting engagement and improving learning outcomes in programming education.