0
\$\begingroup\$

I'm trying to create a small game in which there are "multiple rounds" of four clickable words which then have an outcome each time that you choose one, following by the elimination of the word you chose leaving the other 3.

The easiest way I though this could be done would be through the creation of multiple rooms (each for each set of words, for instance : A B C D -> choose A -> go to room A -> choose B -> go to room A+B), however this has come with the added issue of how to change from one room to the other through the buttons corresponding to each word. Each button has an on click action which according to another forum post should change to a different room, however this created an error message about the camera (which im guessing means a viewport issue or something):

___________________________________________
############################################################################################
ERROR in
action number 1
of Create Event
for object oButton:

camera_create_view() - must have at least 4 arguments
 at gml_RoomCC_rm1_0_PreCreate (line 1) - self.on_click1=room(rmB);self.text="RATIONALITY";
############################################################################################
gml_RoomCC_rm1_0_PreCreate (line 1)

Object Variables

I could get room_goto_next to work, but I would like to go to a specific room, not just the next room (due to the multiple option nature of the thing).

How could I fix this? Also, is there an easier way to do this concept that I might have missed?

\$\endgroup\$

0

You must log in to answer this question.

Browse other questions tagged .