Ask coding questions

← Back to all posts
1
Functions not running.
IzanLarumbe (27)

Hi, i am making a game called SpainLovesPolitics. And i am making a function, but when i do function() it does not run automatically, it has to be runned by the user, how can i make it so it runs automatically?

Also here's the code:

Answered by JustARatherRidi (185) [earned 5 cycles]
View Answer
Commentshotnewtop
1
JustARatherRidi (185)

To do everything inside your Deseo function, add a couple of parentheses to the end of Deseo in the last line.

Deseo()
1
IzanLarumbe (27)

@JustARatherRidi I have already done that, it stills dont work.

1
IzanLarumbe (27)

@JustARatherRidi Nvm it works now. Thank you!