I don't think I know how the animations work very well.
I've only recently gotten truly interested in coding my projects, and I am having lots of trouble (that is no attack on the website, microstudio has been my favorite online coding source yet). I want to make different cutscenes and such, but not only do I not understand how to stop it from looping, but it appears to be constantly playing the animation "behind the scenes." What I mean by this is that it seems that when I'm in the menu screen of my game, the cutscene that would theoretically play after pressing w is already playing before I press anything. So, I press w, and the cutscene is at a random point. Any tips would be greatly appreciated.
just use sprite.setFPS(0) if you want the animation of a sprite to stop playing
also you could only render it when the cutscene is active so you do an if statement and if its time for the cutscene you start drawing the cutscene and it should start from the first frame and continue on
I don't know what I'm doing wrong it isn't working.
if u invite me ill take a look
open the project and on the left sidebar scroll to settings this go to the the add user input and add AJiscool
ok fixed however i recommend making some other simple projects in microstudio to get the hang of it and to seperate everything out into files with functions and classes to allow for cleaniliness and ease of coding
im looking at it, thank you, um, probably a dumb question, but how do the files work? if i put a sprite into a file, then it wont show up, is there a specific line of code that calls for specific files, or did i just miss something?
That is a good question basically everything needs to connect to init update and draw so in another file you would do something like
movement = function()
if keyboard.UP then
y+=1
end
end
and the in update you would call the function so
update = function()
movement()
end
and you would just put the movement function in another file and call it when needed and you can change how movement works by changing it
then it keeps it organized because you can just look at certain parts of your game or program instead of getting stuck since everything is put together
heres an example except im using classes with functions in them classes are more advanced and i suggest learning how to use them before trying to implement them https://microstudio.io/i/AJiscool/ecoquest/ also documentation tab has anything you could need to know
dude i read that looking like the "urath invincible meme", jaw straight to the floor and everything lol. thats actually really helpful thank you so much