Discuss Scratch

kanomaster
Scratcher
100+ posts

Fixing Scrolling Prototype

https://scratch.mit.edu/projects/996750324/
I'm creating a potential game and there are two problems with it so far.
Use WASD to move around, 1 and 2 to switch to weapon, and space to shoot.
You'll see the bullet doesn't spawn where it's supposed to, and the entire map moves rather odd. (get close to a wall and then move the cursor around real fast and the character will go through walls and stuff. (there is no collisions yet, but it shouldn't do that without pressing WASD.
MineTurte
Scratcher
500+ posts

Fixing Scrolling Prototype

kanomaster wrote:

https://scratch.mit.edu/projects/996750324/
I'm creating a potential game and there are two problems with it so far.
Use WASD to move around, 1 and 2 to switch to weapon, and space to shoot.
You'll see the bullet doesn't spawn where it's supposed to, and the entire map moves rather odd. (get close to a wall and then move the cursor around real fast and the character will go through walls and stuff. (there is no collisions yet, but it shouldn't do that without pressing WASD.
For the problem on the bullets not spawning where they are supposed to, just make the bullet go to the player sprite first. Other than that though I don't see the other problems…

Edit: You don't need to set the bullet's location as an object when scrolling because the player doesn't really move away from the middle of the screen.

Last edited by MineTurte (April 8, 2024 14:06:49)


(pronouns are she/her). Advanced Alpha Game Studios Manager. Our website: https://aags2.w3spaces.com
This is JuniperActias. AKA Moth mommy. If I helped you out consider following Juni-Bug (my new account)!




If you found this secret, say uwu
Signature gradients here













kanomaster
Scratcher
100+ posts

Fixing Scrolling Prototype

MineTurte wrote:

kanomaster wrote:

https://scratch.mit.edu/projects/996750324/
I'm creating a potential game and there are two problems with it so far.
Use WASD to move around, 1 and 2 to switch to weapon, and space to shoot.
You'll see the bullet doesn't spawn where it's supposed to, and the entire map moves rather odd. (get close to a wall and then move the cursor around real fast and the character will go through walls and stuff. (there is no collisions yet, but it shouldn't do that without pressing WASD.
For the problem on the bullets not spawning where they are supposed to, just make the bullet go to the player sprite first. Other than that though I don't see the other problems…
I have tried that already, and it doesn't work like that. (Can you elaborate with scratch blocks?)
MineTurte
Scratcher
500+ posts

Fixing Scrolling Prototype

kanomaster wrote:

MineTurte wrote:

kanomaster wrote:

https://scratch.mit.edu/projects/996750324/
I'm creating a potential game and there are two problems with it so far.
Use WASD to move around, 1 and 2 to switch to weapon, and space to shoot.
You'll see the bullet doesn't spawn where it's supposed to, and the entire map moves rather odd. (get close to a wall and then move the cursor around real fast and the character will go through walls and stuff. (there is no collisions yet, but it shouldn't do that without pressing WASD.
For the problem on the bullets not spawning where they are supposed to, just make the bullet go to the player sprite first. Other than that though I don't see the other problems…
I have tried that already, and it doesn't work like that. (Can you elaborate with scratch blocks?)
I looked into your bullet code and you appear to be using a more complicated system that isn't necessary. I'll share a example of something you could do. Other than that though I can't really help you, sorry.

https://scratch.mit.edu/projects/997100600/

(pronouns are she/her). Advanced Alpha Game Studios Manager. Our website: https://aags2.w3spaces.com
This is JuniperActias. AKA Moth mommy. If I helped you out consider following Juni-Bug (my new account)!




If you found this secret, say uwu
Signature gradients here













Powered by DjangoBB