I need realistic but simple(I can handle y velocity + x velocity but not much more)
scripts for:
a)good looking left and right movement
b)good looking jumping (with diagonal jumping included)
Additional information
The game is a side scrolling platformer + shooter.
The game is loosely like Battle Core by fulldroid <free publicity, ur welcome fulldroid>
I have looked through the forum, projects and videos
Thanks for your attention!
Offline
Hey darif, welcome to Scratch!
Since you asked for velocity, you can find more explanation on how to apply it to Scratch on this wiki page.
To make nice left and right turning you can also make two mirrored costumers and "switch" to them using
switch to costume [x v].
Last edited by LS97 (2012-04-19 16:53:23)
Offline
Oh, on a side note, giving a more descriptive topic title instead of "help with scripts" will get you more help on these forums...
Offline
I made a project that might help you out. Just download the project. It explains everything in the comments attached to the scripts. You can download the sprite or just use the scripts for another sprite.
http://scratch.mit.edu/projects/jack123abc4/2481656
Good luck with your game! I'd love to play it when it's finished!
Offline
jack123abc4 wrote:
I made a project that might help you out. Just download the project. It explains everything in the comments attached to the scripts. You can download the sprite or just use the scripts for another sprite.
http://scratch.mit.edu/projects/jack123abc4/2481656
Good luck with your game! I'd love to play it when it's finished!
Here is the link for jack123abc4 - http://scratch.mit.edu/projects/jack123abc4/2481656
Offline
Here you go
when gf clicked forever if <key [right arrow v] pressed?> change [xvel v] by (1) end if <key [left arrow v] pressed?> change [xvel v] by (-1) end set [xvel v] to ((xvel) * (.87)) change x by (xvel) if <touching [level v]?> change y by (([abs v] of (xvel)) + (1)) if <touching [level v]?> change y by ((0) - (([abs v] of (xvel)) + (1))) change x by ((0)-(xvel)) set [xvel v] to ((xvel) / (2)) end end if <key [up arrow v] pressed?> change y by (-1) if <touching [level v]?> set [yvel v] to (10) end change y by (1) end if <(yvel) < [3]> change y by (-1) if <not<touching [level v]?>> change [yvel v] by (-1) end change y by (1) end set [yvel v] to ((yvel) * (0.9)) change y by (yvel) if <touching [level v]?> change y by ((0) - (yvel)) set [yvel v] to ((yvel) / (2.5)) end endWelcome to Scratch!
Offline
darif wrote:
NOTE TO ALL: I've got the movement working.
New Topic:
Any ideas to make enemies smart?
PS: How do you change a thread's name?
Check out my Ultimate Lazer Tag's scripts to get ideas for AI opponents.
Offline
Hey darif, you were lucky that i happened to see your post, but next time you should click the Report link at the bottom, and ask the mods to close it like that.
Offline