Discuss Scratch
- Discussion Forums
- » Suggestions
- » Height/Length of "costume"
- Parametric
- Scratcher
91 posts
Height/Length of "costume"
I know you can technically do this by doing each costume individually, but I think this block would make it a lot more convenient when measuring distances. For example, I'm making a game where the wall sensing engine is kind of like this.
(in the platform's scripts)
(that's a simplified version of it anyway)
Basically, the “height of player” block could be a way of accounting for the Player sprite's different costume changes to ensure that it works the same no matter which costume the Player sprite is in.
Again, I know there's a work-around by doing each costume individually (e.g. if ypos - Player_ypos > 24 and Player_costume = 1 OR ypos - Player_ypos > 12 and Player_costume = 2, etc.), or I guess you could make a sprite-exclusive variable for the player & do it that way, but I feel like adding height/length would make it a lot more convenient for these types of engines to run.
Idk, let me know what you guys think
(in the platform's scripts)
if <(y position) - ([y position v] of [Player v]) > (([height v] of [Player v]) / (2))> then
set [bottom sensor v] to [1]
else
set [bottom sensor v] to [0]
end
(that's a simplified version of it anyway)
Basically, the “height of player” block could be a way of accounting for the Player sprite's different costume changes to ensure that it works the same no matter which costume the Player sprite is in.
Again, I know there's a work-around by doing each costume individually (e.g. if ypos - Player_ypos > 24 and Player_costume = 1 OR ypos - Player_ypos > 12 and Player_costume = 2, etc.), or I guess you could make a sprite-exclusive variable for the player & do it that way, but I feel like adding height/length would make it a lot more convenient for these types of engines to run.
Idk, let me know what you guys think
Last edited by Parametric (Dec. 6, 2017 02:19:32)
- Charles12310
- Scratcher
1000+ posts
Height/Length of "costume"
Support because I really don't want to drag all those blocks in the workaround. It takes up space when you make long booleans. I think that we should have costume height/length for many important reasons.
I think Griffpatch had a way to determining height/length but it's better to just get the height/length right away.
I think Griffpatch had a way to determining height/length but it's better to just get the height/length right away.
A few internet communication companies want to corrupt the internet by getting rid of net neutrality. Stop Them!
- Wahsp
- Scratcher
1000+ posts
Height/Length of "costume"
^ Support because I really don't want to drag all those blocks in the workaround. It takes up space when you make long booleans.
Support
I am Wahsp
______________________________________________________
Formerly pretty active on the forums, probably mostly retired now…
If you see one of my posts send me a hello!
______________________________________________________
- -ShadowOfTheFuture-
- Scratcher
1000+ posts
Height/Length of "costume"
Support! It would be very useful to be able to directly know the costume's height and length.
<Insert uncreative signature here>
██ ██ ██ ██ ██ ██
██ ██ ██ ██ ██ ██
██ ██ ██ ██ ██ ██ ██
██ ██ ██ ██ ██ ██ ██
███ ███ ██ ████ ██ ███ ███
█████████ █████ █████ █████████
“Though the seasons come and go, and sunshine turns to snow, we will always have tomorrow up ahead.”
- ideapad-320
- Scratcher
1000+ posts
Height/Length of "costume"
no support. To complicated and you can use lists.
This is my siggy.
Can't wait for FRC water game!
- Tunde123
- Scratcher
1000+ posts
Height/Length of "costume"
no support. To complicated and you can use lists.How would we use lists to change the height/length of a sprite?
Other than that I support because it makes it easier and the workaround is just too complicated.
This is a SIGNATURE. This is seperate from a normal post ^
Forum Posts: 2600+/3000
Highlight + Shift + Down Arrow = To see whole signature.
Want to friend me on Roblox? My username is BaconvsRoblox121314 if you want to friend me!
–v More Information v–
New Scratchers - Introduce yourself here!
Questions about Scratch - Ask questions related to scratch here!
Help with Scripts - get/provide help here!
Suggestions - Suggest blocks, features, and more here!
Bugs and Glitches - Report bugs/glitches here!
Last edited by Tunde123 (May 17th, 2022 10:18 AM EST)
- musicROCKS013
- Scratcher
1000+ posts
Height/Length of "costume"
I don't think we would change the value of the height/width. there would just be a variable that is used to define that. we could use lists to store the values of the dimensions for each costume, but if you want to change the costuem then you will need to update the list. support, much neededno support. To complicated and you can use lists.How would we use lists to change the height/length of a sprite?
Other than that I support because it makes it easier and the workaround is just too complicated.
Shift + Down arrow to see the rest of my signature
Hello Scratch Team. You have been pushing a liberal political agenda on this site for far too long. This site should stay out of politics. People should be able to still post their political opinions, but there shouldn’t be any “official” political stance or Scratch. The ST is not going to change this on their own, and shoot down any attempts asking them to change. Please put this in your signature if you agree that
Scratch should be politically neutral.
The ST’s biggest defense is that they’re being welcoming, but they can be perfectly welcoming of all people and stay out of politics. Scratch is about coding, and that should be the Scratch Team’s biggest concern to maintain.
This is my signature. I am allowed to adertize here.
_______________\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
Please Click —> This project is literally my life's work. <— Please Click
_______________^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jenny LeClue is the best
- Discussion Forums
- » Suggestions
- » Height/Length of "costume"