Please can you fully explain what you need help with
Offline
I have the same issue as ocean636. i want to know how to make a block sprite solid so that my character sprite can jump on it. Like if i wanted my sprite to be able to jump on a blue block suspended in the air, how would I do that?
Offline
You could use wall sensors or color sensing (put 4 unique colors on the top, right, left, and bottom of the sprite to see if it is touching a wall and where it is). Both are valid, but I would recommend somethings like this:
when gf clicked forever move horizontally if<touching [wall/floor v]?> go back to where you were before the horizontal move end move vertically if<touching [wall/floor v]?> go back to where you were before the vertical move endIf you can tell me in greater detail what you want (acceleration-based gravity? acceleration-based horizontal movement? horizontal movement if you're not touching the ground? wall jumping? etc.) I can try to write you the script if you want.
Offline
That's just what i needed. Also, how would i switch levels? Like if I wanted to have an exit door, and when my sprite pressed the up button when touching it, the sprite would move on the the next level?
Offline
when key [up arrow v] pressed if<touching [door v]?> change [level v] by (1) broadcast (join [level ](level)) end when I receive [level 1 v] go to x:(-50) y:(-100) // starting place for level 1 set [y velocity v] to (0) // if you're using y velocity set [x velocity v] to (0) // if you're using x velocity when I receive [level 2 v] go to x:(-150) y:(-120) // starting place for level 2 set [y velocity v] to (0) // if you're using y velocity set [x velocity v] to (0) // if you're using x velocityFor the stage:
when I receive [level 1 v] switch to costume [costume 1 v] when I receive [level 2 v] switch to costume [costume 2 v]For the door:
when I receive [level 1 v] go to x:(50) y:(75) // location of door in level 1 when I receive [level 2 v] go to x:(80) y:(115) // location of door in level 2
Offline
u could try adding enemies! Like mine! Here it is! Lord of Knights
Offline
GrateGames wrote:
u could try adding enemies! Like mine! Here it is! Lord of Knights
No. That's not what the person wanted. This is a blatant attempt to advertise your project.
Also, you guys make it way too easy. Remember, give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime. This is why I chose to link to the Scratch Wiki instead of an actual answer.
Offline
lalala3 wrote:
GrateGames wrote:
u could try adding enemies! Like mine! Here it is! Lord of Knights
No. That's not what the person wanted. This is a blatant attempt to advertise your project.
Also, you guys make it way too easy. Remember, give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime. This is why I chose to link to the Scratch Wiki instead of an actual answer.
If somebody wants an answer, that's what I'm going to give them. Are you insinuating that reading an answer on wiki is somehow more "character building" or "educational" than reading it on the forums?
Or are you arguing that they'll get a vaguer answer and hence have to struggle more to achieve something that has already been done by somebody else? I admit there is some value in reinventing the wheel, but if somebody doesn't want to do it, why force them to?
Offline