I need extra help understanding the different parameters that the functions sometimes use like sprite, boolean, and image parameters. If anyone could send projects that utilize thoughts kinds of parameters, that I can look over and get an idea on how to use them I would appreciate it a ton
True… I don’t understand functions AT ALL…
i can help just wait a bit
I like fonctions
I LOVE functions!! Basically a function is like your own custom block of code. Say you wanted a block to move a sprite the same amount up and to the right to make it move diagonally ! Instead of having a ‘Change sprite x by 1’ and ‘change sprite y by 1’ for EVERY SINGLE SPRITE YOU NEED TO MOVE (very big!) you can have a function with the parameter ‘sprite’ so that the code inside the function is ‘change (sprite parameter) x by 1’ and ‘change (sprite parameter) y by 1’. The parameter is just a placeholder for watever thing you put in when you need to use the function; put in player when you want to move the player, put in enemy when you want to move the enemy, etc. It works the same way for other parameters of course. Hope this helps!
It sincerely does! Thanks!
Thank you! Your explanation cleared things up for me appreciate it