Discuss Scratch

WonderingWolf64
Scratcher
31 posts

Help with rpg hitboxes.

I am trying to make a scratch version of In Stars And Time, and I can't figure out hitboxes, I am using sprites and rooms from the wiki(not the fandom one, the gg one, if you know what I mean). Please help me. (BTW Thanks for everyone who is helping me)

Last edited by WonderingWolf64 (Oct. 6, 2025 20:20:29)

plum_the_fox
Scratcher
1000+ posts

Help with rpg hitboxes.

WonderingWolf64 wrote:

I am trying to make a scratch version of In Stars And Time, and I can't figure out hitboxes, I am using sprites and rooms from the wiki(not the fandom one, the gg one, if you know what I mean). Please help me.
what i like to do is dupe the idle make it a vector art then draw a box that covers the sprite then i make it the first sprite then you do
when green flag clicked
switch costume to [hitbox v]
set rotation style [no rotation v]
then you put all your other sprite code (if on the green flag) but on to that but after the set rotation style, if not attached to the green flag and your broadcasting a gameloop then you would do
when green flag clicked
switch costume to [hitbox v]
set rotation style [no rotation v]
broadcast [gameloop v]
so that way if you using a gameloop to broadcast the gameloop the game switches to your sprites and hides the hitbox (it's still there don't worry) then you make code for the hitbox.. anyways hope this helps ^w^

Last edited by plum_the_fox (Oct. 6, 2025 03:03:07)

WonderingWolf64
Scratcher
31 posts

Help with rpg hitboxes.

plum_the_fox wrote:

WonderingWolf64 wrote:

I am trying to make a scratch version of In Stars And Time, and I can't figure out hitboxes, I am using sprites and rooms from the wiki(not the fandom one, the gg one, if you know what I mean). Please help me.
what i like to do is dupe the idle make it a vector art then draw a box that covers the sprite then i make it the first sprite then you do
when green flag clicked
switch costume to [hitbox v]
set rotation style [no rotation v]
then you put all your other sprite code (if on the green flag) but on to that but after the set rotation style, if not attached to the green flag and your broadcasting a gameloop then you would do
when green flag clicked
switch costume to [hitbox v]
set rotation style [no rotation v]
broadcast [gameloop v]
so that way if you using a gameloop to broadcast the gameloop the game switches to your sprites and hides the hitbox (it's still there don't worry) then you make code for the hitbox.. anyways hope this helps ^w^
Thank you, I will try it.
plum_the_fox
Scratcher
1000+ posts

Help with rpg hitboxes.

WonderingWolf64 wrote:

plum_the_fox wrote:

WonderingWolf64 wrote:

I am trying to make a scratch version of In Stars And Time, and I can't figure out hitboxes, I am using sprites and rooms from the wiki(not the fandom one, the gg one, if you know what I mean). Please help me.
what i like to do is dupe the idle make it a vector art then draw a box that covers the sprite then i make it the first sprite then you do
when green flag clicked
switch costume to [hitbox v]
set rotation style [no rotation v]
then you put all your other sprite code (if on the green flag) but on to that but after the set rotation style, if not attached to the green flag and your broadcasting a gameloop then you would do
when green flag clicked
switch costume to [hitbox v]
set rotation style [no rotation v]
broadcast [gameloop v]
so that way if you using a gameloop to broadcast the gameloop the game switches to your sprites and hides the hitbox (it's still there don't worry) then you make code for the hitbox.. anyways hope this helps ^w^
Thank you, I will try it.
okie ^w^.. did it work?
Com_engineer_Tom
Scratcher
100+ posts

Help with rpg hitboxes.

WonderingWolf64 wrote:

I am trying to make a scratch version of In Stars And Time, and I can't figure out hitboxes, I am using sprites and rooms from the wiki(not the fandom one, the gg one, if you know what I mean). Please help me.
You could try this:

define player tick
switch costume to [hitbox v]
set rotation style [don't rotate v]
if <touching [rpg bullet v] ?> then
do whatever
end
switch costume to [player v]
set rotation style [all around v]
when green flag clicked
forever
player tick
end

Make sure to tick off the “run without screen refresh” box when you define the “player tick” block.

To create the hitbox, you can create a box that wraps around the player.

Done!
Com_engineer_Tom
Scratcher
100+ posts

Help with rpg hitboxes.

plum_the_fox wrote:

WonderingWolf64 wrote:

plum_the_fox wrote:

WonderingWolf64 wrote:

I am trying to make a scratch version of In Stars And Time, and I can't figure out hitboxes, I am using sprites and rooms from the wiki(not the fandom one, the gg one, if you know what I mean). Please help me.
what i like to do is dupe the idle make it a vector art then draw a box that covers the sprite then i make it the first sprite then you do
when green flag clicked
switch costume to [hitbox v]
set rotation style [no rotation v]
then you put all your other sprite code (if on the green flag) but on to that but after the set rotation style, if not attached to the green flag and your broadcasting a gameloop then you would do
when green flag clicked
switch costume to [hitbox v]
set rotation style [no rotation v]
broadcast [gameloop v]
so that way if you using a gameloop to broadcast the gameloop the game switches to your sprites and hides the hitbox (it's still there don't worry) then you make code for the hitbox.. anyways hope this helps ^w^
Thank you, I will try it.
okie ^w^.. did it work?
made a more efficient way with one sprite
plum_the_fox
Scratcher
1000+ posts

Help with rpg hitboxes.

Com_engineer_Tom wrote:

plum_the_fox wrote:

WonderingWolf64 wrote:

plum_the_fox wrote:

WonderingWolf64 wrote:

I am trying to make a scratch version of In Stars And Time, and I can't figure out hitboxes, I am using sprites and rooms from the wiki(not the fandom one, the gg one, if you know what I mean). Please help me.
what i like to do is dupe the idle make it a vector art then draw a box that covers the sprite then i make it the first sprite then you do
when green flag clicked
switch costume to [hitbox v]
set rotation style [no rotation v]
then you put all your other sprite code (if on the green flag) but on to that but after the set rotation style, if not attached to the green flag and your broadcasting a gameloop then you would do
when green flag clicked
switch costume to [hitbox v]
set rotation style [no rotation v]
broadcast [gameloop v]
so that way if you using a gameloop to broadcast the gameloop the game switches to your sprites and hides the hitbox (it's still there don't worry) then you make code for the hitbox.. anyways hope this helps ^w^
Thank you, I will try it.
okie ^w^.. did it work?
made a more efficient way with one sprite
oh ok thanks >w<
WonderingWolf64
Scratcher
31 posts

Help with rpg hitboxes.

plum_the_fox wrote:

WonderingWolf64 wrote:

plum_the_fox wrote:

WonderingWolf64 wrote:

I am trying to make a scratch version of In Stars And Time, and I can't figure out hitboxes, I am using sprites and rooms from the wiki(not the fandom one, the gg one, if you know what I mean). Please help me.
what i like to do is dupe the idle make it a vector art then draw a box that covers the sprite then i make it the first sprite then you do
when green flag clicked
switch costume to [hitbox v]
set rotation style [no rotation v]
then you put all your other sprite code (if on the green flag) but on to that but after the set rotation style, if not attached to the green flag and your broadcasting a gameloop then you would do
when green flag clicked
switch costume to [hitbox v]
set rotation style [no rotation v]
broadcast [gameloop v]
so that way if you using a gameloop to broadcast the gameloop the game switches to your sprites and hides the hitbox (it's still there don't worry) then you make code for the hitbox.. anyways hope this helps ^w^
Thank you, I will try it.
okie ^w^.. did it work?
Okay, I got the code in, and I made the character stop being able to move when the hitboxes collide, but the problem now is, well, the character can't move. So please help. If you need me too I can share the project :3

Last edited by WonderingWolf64 (Oct. 6, 2025 17:26:17)

Com_engineer_Tom
Scratcher
100+ posts

Help with rpg hitboxes.

WonderingWolf64 wrote:

plum_the_fox wrote:

WonderingWolf64 wrote:

plum_the_fox wrote:

WonderingWolf64 wrote:

I am trying to make a scratch version of In Stars And Time, and I can't figure out hitboxes, I am using sprites and rooms from the wiki(not the fandom one, the gg one, if you know what I mean). Please help me.
what i like to do is dupe the idle make it a vector art then draw a box that covers the sprite then i make it the first sprite then you do
when green flag clicked
switch costume to [hitbox v]
set rotation style [no rotation v]
then you put all your other sprite code (if on the green flag) but on to that but after the set rotation style, if not attached to the green flag and your broadcasting a gameloop then you would do
when green flag clicked
switch costume to [hitbox v]
set rotation style [no rotation v]
broadcast [gameloop v]
so that way if you using a gameloop to broadcast the gameloop the game switches to your sprites and hides the hitbox (it's still there don't worry) then you make code for the hitbox.. anyways hope this helps ^w^
Thank you, I will try it.
okie ^w^.. did it work?
Okay, I got the code in, and I made the character stop being able to move when the hitboxes collide, but the problem now is, well, the character can't move. So please help. If you need me too I can share the project :3
Did you try my idea
plum_the_fox
Scratcher
1000+ posts

Help with rpg hitboxes.

Com_engineer_Tom wrote:

WonderingWolf64 wrote:

plum_the_fox wrote:

WonderingWolf64 wrote:

plum_the_fox wrote:

WonderingWolf64 wrote:

I am trying to make a scratch version of In Stars And Time, and I can't figure out hitboxes, I am using sprites and rooms from the wiki(not the fandom one, the gg one, if you know what I mean). Please help me.
what i like to do is dupe the idle make it a vector art then draw a box that covers the sprite then i make it the first sprite then you do
when green flag clicked
switch costume to [hitbox v]
set rotation style [no rotation v]
then you put all your other sprite code (if on the green flag) but on to that but after the set rotation style, if not attached to the green flag and your broadcasting a gameloop then you would do
when green flag clicked
switch costume to [hitbox v]
set rotation style [no rotation v]
broadcast [gameloop v]
so that way if you using a gameloop to broadcast the gameloop the game switches to your sprites and hides the hitbox (it's still there don't worry) then you make code for the hitbox.. anyways hope this helps ^w^
Thank you, I will try it.
okie ^w^.. did it work?
Okay, I got the code in, and I made the character stop being able to move when the hitboxes collide, but the problem now is, well, the character can't move. So please help. If you need me too I can share the project :3
Did you try my idea
wait who are you talking to? lol
Com_engineer_Tom
Scratcher
100+ posts

Help with rpg hitboxes.

plum_the_fox wrote:

Com_engineer_Tom wrote:

WonderingWolf64 wrote:

plum_the_fox wrote:

WonderingWolf64 wrote:

plum_the_fox wrote:

WonderingWolf64 wrote:

I am trying to make a scratch version of In Stars And Time, and I can't figure out hitboxes, I am using sprites and rooms from the wiki(not the fandom one, the gg one, if you know what I mean). Please help me.
what i like to do is dupe the idle make it a vector art then draw a box that covers the sprite then i make it the first sprite then you do
when green flag clicked
switch costume to [hitbox v]
set rotation style [no rotation v]
then you put all your other sprite code (if on the green flag) but on to that but after the set rotation style, if not attached to the green flag and your broadcasting a gameloop then you would do
when green flag clicked
switch costume to [hitbox v]
set rotation style [no rotation v]
broadcast [gameloop v]
so that way if you using a gameloop to broadcast the gameloop the game switches to your sprites and hides the hitbox (it's still there don't worry) then you make code for the hitbox.. anyways hope this helps ^w^
Thank you, I will try it.
okie ^w^.. did it work?
Okay, I got the code in, and I made the character stop being able to move when the hitboxes collide, but the problem now is, well, the character can't move. So please help. If you need me too I can share the project :3
Did you try my idea
wait who are you talking to? lol
The gem looking person
Matthobro120
Scratcher
69 posts

Help with rpg hitboxes.

You could go check out griffpatch's pen based RPG collision tutorial on YouTube.
plum_the_fox
Scratcher
1000+ posts

Help with rpg hitboxes.

Com_engineer_Tom wrote:

plum_the_fox wrote:

Com_engineer_Tom wrote:

WonderingWolf64 wrote:

plum_the_fox wrote:

WonderingWolf64 wrote:

plum_the_fox wrote:

WonderingWolf64 wrote:

I am trying to make a scratch version of In Stars And Time, and I can't figure out hitboxes, I am using sprites and rooms from the wiki(not the fandom one, the gg one, if you know what I mean). Please help me.
what i like to do is dupe the idle make it a vector art then draw a box that covers the sprite then i make it the first sprite then you do
when green flag clicked
switch costume to [hitbox v]
set rotation style [no rotation v]
then you put all your other sprite code (if on the green flag) but on to that but after the set rotation style, if not attached to the green flag and your broadcasting a gameloop then you would do
when green flag clicked
switch costume to [hitbox v]
set rotation style [no rotation v]
broadcast [gameloop v]
so that way if you using a gameloop to broadcast the gameloop the game switches to your sprites and hides the hitbox (it's still there don't worry) then you make code for the hitbox.. anyways hope this helps ^w^
Thank you, I will try it.
okie ^w^.. did it work?
Okay, I got the code in, and I made the character stop being able to move when the hitboxes collide, but the problem now is, well, the character can't move. So please help. If you need me too I can share the project :3
Did you try my idea
wait who are you talking to? lol
The gem looking person
oooooh ok ^w^
WonderingWolf64
Scratcher
31 posts

Help with rpg hitboxes.

Matthobro120 wrote:

You could go check out griffpatch's pen based RPG collision tutorial on YouTube.
ok, I'll try it
WonderingWolf64
Scratcher
31 posts

Help with rpg hitboxes.

Matthobro120 wrote:

You could go check out griffpatch's pen based RPG collision tutorial on YouTube.
can you link it? I can't seem to find it.
plum_the_fox
Scratcher
1000+ posts

Help with rpg hitboxes.

WonderingWolf64 wrote:

Matthobro120 wrote:

You could go check out griffpatch's pen based RPG collision tutorial on YouTube.
can you link it? I can't seem to find it.
https://www.youtube.com/watch?v=5lof-Nu1VVE&list=PLy4zsTUHwGJJM6OFblu_t-5I5Yw5SxvhT
and https://www.youtube.com/watch?v=dtMy3umcoEI (this one is health bars if you need em)
WonderingWolf64
Scratcher
31 posts

Help with rpg hitboxes.

plum_the_fox wrote:

WonderingWolf64 wrote:

Matthobro120 wrote:

You could go check out griffpatch's pen based RPG collision tutorial on YouTube.
can you link it? I can't seem to find it.
https://www.youtube.com/watch?v=5lof-Nu1VVE&list=PLy4zsTUHwGJJM6OFblu_t-5I5Yw5SxvhT
and https://www.youtube.com/watch?v=dtMy3umcoEI (this one is health bars if you need em)
Ok thank you for the health bar but I already watched the RPG one for the movement, it does not include hitboxes

Last edited by WonderingWolf64 (Oct. 6, 2025 20:59:15)

plum_the_fox
Scratcher
1000+ posts

Help with rpg hitboxes.

WonderingWolf64 wrote:

plum_the_fox wrote:

WonderingWolf64 wrote:

Matthobro120 wrote:

You could go check out griffpatch's pen based RPG collision tutorial on YouTube.
can you link it? I can't seem to find it.
https://www.youtube.com/watch?v=5lof-Nu1VVE&list=PLy4zsTUHwGJJM6OFblu_t-5I5Yw5SxvhT
and https://www.youtube.com/watch?v=dtMy3umcoEI (this one is health bars if you need em)
Ok thank you for the health bar but I already watched the RPG one for the movement, it does not include hitboxes
i thought it did.. hold on
i found this hitbox video: https://www.youtube.com/watch?v=LTtPP6pw_sc
and i found this hitbox video https://www.youtube.com/watch?v=Ge4RkZlMkak
and then there's this one: https://www.youtube.com/watch?v=ZvQ0Gv4I2Cc
as of now these are all i could find
WonderingWolf64
Scratcher
31 posts

Help with rpg hitboxes.

plum_the_fox wrote:

WonderingWolf64 wrote:

plum_the_fox wrote:

WonderingWolf64 wrote:

Matthobro120 wrote:

You could go check out griffpatch's pen based RPG collision tutorial on YouTube.
can you link it? I can't seem to find it.
https://www.youtube.com/watch?v=5lof-Nu1VVE&list=PLy4zsTUHwGJJM6OFblu_t-5I5Yw5SxvhT
and https://www.youtube.com/watch?v=dtMy3umcoEI (this one is health bars if you need em)
Ok thank you for the health bar but I already watched the RPG one for the movement, it does not include hitboxes
i thought it did.. hold on
i found this hitbox video: https://www.youtube.com/watch?v=LTtPP6pw_sc
and i found this hitbox video https://www.youtube.com/watch?v=Ge4RkZlMkak
and then there's this one: https://www.youtube.com/watch?v=ZvQ0Gv4I2Cc
as of now these are all i could find
Ok, thank you for your help! The one that's the most helpful is most likely the second one and I will let you know how it goes.
plum_the_fox
Scratcher
1000+ posts

Help with rpg hitboxes.

WonderingWolf64 wrote:

plum_the_fox wrote:

WonderingWolf64 wrote:

plum_the_fox wrote:

WonderingWolf64 wrote:

Matthobro120 wrote:

You could go check out griffpatch's pen based RPG collision tutorial on YouTube.
can you link it? I can't seem to find it.
https://www.youtube.com/watch?v=5lof-Nu1VVE&list=PLy4zsTUHwGJJM6OFblu_t-5I5Yw5SxvhT
and https://www.youtube.com/watch?v=dtMy3umcoEI (this one is health bars if you need em)
Ok thank you for the health bar but I already watched the RPG one for the movement, it does not include hitboxes
i thought it did.. hold on
i found this hitbox video: https://www.youtube.com/watch?v=LTtPP6pw_sc
and i found this hitbox video https://www.youtube.com/watch?v=Ge4RkZlMkak
and then there's this one: https://www.youtube.com/watch?v=ZvQ0Gv4I2Cc
as of now these are all i could find
Ok, thank you for your help! The one that's the most helpful is most likely the second one and I will let you know how it goes.
okie ^w^

Powered by DjangoBB