So… I am currently coding Among us and I found a glitch and need help to fix it! It is a sprite position glitch that is very wierd… I set the position of the start player (The screen where yo see the role and there is 1 imposter among us) to where I want it to be… well it now randomly chooses its position… on the top, on he bottom, left, right and not in screen…
Any ideas on how to fix that? Also if I remove the set sprite position it still spawns randomly…
Centering the camera also does not work! (The code for it is now in a function)
(Yes my code is a mess) Thanks!!!
(PLS DO NOT SAY IT IS YOURS)
BY DAHBIX
Older Version:
Newest Version:
Glitch still there …
Some fixes and detail work on the map
And 2 Functions (Imposter and Crewmate (to make it less of a mess!))
I’m guessing the problem was that the dialog was popping up before the Start_Player sprite, therefore preventing it from moving. So I added a pause 10 ms block, which forces Arcade to update the screen before drawing the dialog.
I tried out your link and it is still spawning randomly. This seems so hard for something so simple I’ve tried making them relative to camera, fly to center of screen, place on top of tilemap center. Nothing seems to work. Could the story extension be used for the “queue story part” blocks instead of pause?
I think you have too much code in the ‘game update every 100’. I think you should only use this if you want check the other players and have them move around. I noticed in the game start, that you set a countdown, allowing the players to move around. You could use a ‘on countdown end’ event (Info section), within that event block display the dialog box call the ‘call CREWMATE’ and ‘call IMPOSTER’ functions. Otherwise you could also set a variable ‘time to start game’ that stores the value (game -> time since start + some time to wait), and in your game update event, check if that variable is less than ‘game -> time since start’.