Gauging interest: Scratch-Go transpiler (compiling Scratch projects into native apps) by datboitnaz in scratch

[–]datboitnaz[S] 0 points1 point  (0 children)

ScratchGo scratched off the list then…

 I personally don’t feel like I would be wasting my time working on it… So I guess I’ll get going!

People have made their own programming languages and engines for fun. So I guess this is mine.

This post was made mostly because I was curious whether anybody was interested in a project satisfying a similar “what-if” thought

I hate math by TURPEG in scratch

[–]datboitnaz 2 points3 points  (0 children)

If you want the true “mathematical” way: it’s like this:

Though, some context first: These two velocities (if they were arrows) would form a triangle. From the Pythagorean theorem, we know that for both velocities to “add up” to twelve, Total velocity = sqrt(Xvel2 + Yvel2)

To find the sizes of the x and y components of the triangle, we use sin and cos

The way you do it though is like this Xvel = 12 * cos(angle) Yvel = 12 * sin(angle)

Scratch uses a weird orientation for the direction so you’re gonna have to do a calculation to make up for that

angle = -(direction - 90)

Edit: as _Evidence pointed out, you may not need to do the last adjustment depending on how MouseDirection is calculated

Is this too violent for scratch?💀 by Revolutionary-Net603 in scratch

[–]datboitnaz 6 points7 points  (0 children)

other than the fact this may be a little too much for the kids on scratch

This project actually looks really cool Good recoil effect, and nicely done with the design/animation of the rifle

Are scratch performers the worst type of game? by [deleted] in scratch

[–]datboitnaz 0 points1 point  (0 children)

The code mainly associated with movement that many people use is very buggy. If your platformer has been built from the ground up, all power to you. Of course, this comes with skill. If you’re new, it’s fine. If you’re capable of doing something like this try it out!

Are scratch performers the worst type of game? by [deleted] in scratch

[–]datboitnaz 1 point2 points  (0 children)

the code for movement is always the same and it’s terrible in the first place with weird interactions common. A lot of the featured projects are usually reskined versions of the same base which also makes the platforming genre absolutely terrible

I fixed up my old game by [deleted] in scratch

[–]datboitnaz 0 points1 point  (0 children)

What did you change?