Discuss Scratch

RandomHoodie72
Scratcher
4 posts

I used the same code for a different project, and it won't work this time

I was making a top down shooter game when I was about to recreate a shooting mechanic from a game I already made. the exact same code I used for the bullets that your character shoots doesn't work on a different project even though I copied and pasted it from the other project. They are the exact same but yet one works and the other makes the bullet have a sideways position constantly. the sideways position stays even when you shoot upwards. on the other project it didn't do that at all. if possible please give me some ideas on how I could possibly fix this issue.
deck26
Scratcher
1000+ posts

I used the same code for a different project, and it won't work this time

Are the costumes pointing the same way in both projects - the costuume should appear in the editor as it would be when pointing right? Otherwise please share the project.
zeldafan333
Scratcher
100+ posts

I used the same code for a different project, and it won't work this time

To analyse this properly, I need the project linked. Any code with variables in it need to have the variables in the new project.

Want to be as popular as griffpatch? Click here: https://www.youtube.com/watch?v=dQw4w9WgXcQ
Also, I make music https://scratch.mit.edu/users/zeldafan333_music/
RandomHoodie72
Scratcher
4 posts

I used the same code for a different project, and it won't work this time

deck26 wrote:

Are the costumes pointing the same way in both projects - the costuume should appear in the editor as it would be when pointing right? Otherwise please share the project.

Yes they are both pointing in the same direction and i will share the project.
RandomHoodie72
Scratcher
4 posts

I used the same code for a different project, and it won't work this time

this is my project

Last edited by RandomHoodie72 (May 25, 2022 11:54:45)

CoconutGator
Scratcher
1000+ posts

I used the same code for a different project, and it won't work this time

set rotation style [all around v]
Put that in the bullet sprite.

Guess I should use the signature for explaining myself rather than Skyrim quotes. So hi. I'm Gator.

Metal albums I like:
* The Liberation - Disillusion
* Citadel - Ne Obliviscaris
* With All Their Might - Dyscarnate
* Ghost Reveries - Opeth
* Where Owls Know My Name - Rivers of Nihil

Recommend me more (please)
RandomHoodie72
Scratcher
4 posts

I used the same code for a different project, and it won't work this time

CoconutGator wrote:

set rotation style [all around v]
Put that in the bullet sprite.
Thank you so much I was stuck on this forever.

Powered by DjangoBB