Ask coding questions

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

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 (209) [earned 5 cycles]
View Answer
JustARatherRidi (209)

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

IzanLarumbe (33)

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

IzanLarumbe (33)

@JustARatherRidi Nvm it works now. Thank you!