Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Fixing Scrolling Prototype
- 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.
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
https://scratch.mit.edu/projects/996750324/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'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.
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)
15+ (not revealing age) girl. Pronouns are she/her.
Host of The Pi Counsel. Comment in studio to join.
Front-end web developer & software programmer. I use JS, HTML, & CSS. Learning python3 right now.
Grammar fanatic as well
If I helped you out consider following Juni-Bug!
Select this + shift + down arrow = view rest of signature
This is JuniperActias. AKA Moth mommy.
Signature gradients here
If you found this secret; reply with ‘uwu’ with absolutely no context
Host of The Pi Counsel. Comment in studio to join.
Front-end web developer & software programmer. I use JS, HTML, & CSS. Learning python3 right now.
Grammar fanatic as well
If I helped you out consider following Juni-Bug!
Select this + shift + down arrow = view rest of signature
This is JuniperActias. AKA Moth mommy.
Signature gradients here
If you found this secret; reply with ‘uwu’ with absolutely no context
- kanomaster
- Scratcher
100+ posts
Fixing Scrolling Prototype
I have tried that already, and it doesn't work like that. (Can you elaborate with scratch blocks?)https://scratch.mit.edu/projects/996750324/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'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
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.I have tried that already, and it doesn't work like that. (Can you elaborate with scratch blocks?)https://scratch.mit.edu/projects/996750324/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'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.
https://scratch.mit.edu/projects/997100600/
15+ (not revealing age) girl. Pronouns are she/her.
Host of The Pi Counsel. Comment in studio to join.
Front-end web developer & software programmer. I use JS, HTML, & CSS. Learning python3 right now.
Grammar fanatic as well
If I helped you out consider following Juni-Bug!
Select this + shift + down arrow = view rest of signature
This is JuniperActias. AKA Moth mommy.
Signature gradients here
If you found this secret; reply with ‘uwu’ with absolutely no context
Host of The Pi Counsel. Comment in studio to join.
Front-end web developer & software programmer. I use JS, HTML, & CSS. Learning python3 right now.
Grammar fanatic as well
If I helped you out consider following Juni-Bug!
Select this + shift + down arrow = view rest of signature
This is JuniperActias. AKA Moth mommy.
Signature gradients here
If you found this secret; reply with ‘uwu’ with absolutely no context
- Discussion Forums
- » Help with Scripts
- » Fixing Scrolling Prototype