hey @richard i have a problem creating a extension
when i try to open the github page this is what i get
but other wise the extension works
hey @richard i have a problem creating a extension
when i try to open the github page this is what i get
When you’re trying to open the extension, you want to make sure you’re using the github.com address and not github.io.
The address you need should look like this:
https://github.com/Yu-Hayate/Yu-hayates_Mouse
i see, thank you
hey! @richard. I’m once more asking for your help XP
so here is the problem
so I’m working on a Hitbox extension and I’m making a way to draw something where certain hitboxes are, like draw the outline of a hitbox called “bob”
but i have been trying to only draw it if its in the screen and only the parts in the screen with the camera
i have yet to find a way to do so
here is the project
if you have any advice i would be happy to hear it
@YuHayate all you need is to use the current camera on the scene. There are two properties on the camera object that are worth noting: camera.drawOffsetX and camera.drawOffsetY. Whenever you are drawing anything to the screen, just subtract those two numbers from the x and y respectively:
const camera = game.currentScene().camera;
screen.fllRect(
x - camera.drawOffsetX,
y - camera.drawOffsetY,
width,
height,
color
)
hey @richard. i started making a rendering engine and i can’t seem to figure out how to clear the screen https://makecode.com/_HhCakzRvkFye
@YuHayate you can clear the screen by using the fill method: screen.fill(0)
ya thats what i ended up doing yesterday
am I allowed to post a game that has a small amount of blood and limb chopping, but would have a warning saying this game is 13+ ?
screen.fill(0)
doesnt work you have to do scene.backgroundImage().fill(0)
probably
blood isn’t against the rules; it really depends on the other content of the game!
what about chopping limbs off
hey @richard. do you know why these functions dont work?
Would you mind adding a link to your project? It will help with the debugging.
sure (sorry for the late reply i was off to see my family)
hey @richard! i wanted to know a thing or two here, first off in the math section theres the math block with the sqrt(0)
but using the enum on that block you can change the number of inputs like if you select the atan2(0,0)
option, i wanted to know if you can do that in an extension and if so was there a way to make is so that it doesnt just change the number of inputs but does something like every option of the enum leads to an other enum that might have an other enum after or not?
ah, that’s not possible to do in an extension! that block is special.
yea about the data loss.
i forgot about this but it was because my SSD was Full
how do you colorpick a different color when making a sprite? (ex. i want a darker shade of green)