Discuss Scratch

zahmbie1
Scratcher
1000+ posts

sprite not going to 00

So, I have this mechanic where if you shoot, it spawns hitscans, however, instead of going to 00, it goes wherever it wants to.

Project: https://scratch.mit.edu/projects/575858453/
Lirey
Scratcher
100+ posts

sprite not going to 00

In the hitscan sprite it has a piece of code that says
when green flag clicked
forever
set x to (hitscan x - SCROLL X)
set y to (hitscan y - SCROLL Y)
end
something like that. I'm unaware of what you fully want it to do, but that's what's stopping it from going to 0, 0

I'm just an animator/game maker on scratch, especially MAP parts. If you're interested in seeing the animations I make here's one that I'm pretty proud of Hope you have a wonderful day

Nezon
Scratcher
1000+ posts

sprite not going to 00

Aren't you already setting x and y to (hitscan x - scroll x) / y? That might be contradicting your go to x and y.

This is my signature (it goes automatically under every post I make)! Here is a bit of advice on foruming, by the way. Don't do SAND. SAND means four words.
SAND means Spam, Advertising, Necroposting, and Derailing.
Spam is when a irrelevant message is sent to many places. Wiki Article: Spam
Advertising is when you promote your studios and projects. Wiki Article: Advertising
Necroposting is when you post on a old topic. It distracts other helpers! Wiki Article: Necroposting
Derailing is when you post something that is irrelevant to the topic, like minimodding. It is called thread hijacking. Wiki Article: Derailing(Derailing idea comes from this guy),
in the process of leaving scratch.
bob has been hidden again :(

Powered by DjangoBB