harry
Abandoned Uranium Working
Posts: 13
|
Post by harry on Feb 18, 2021 14:52:10 GMT
Hi there,
Is there a way to stand on a pushable sprite ? For example : push a crate and than jump on it to get on a platform
Kind regards, Harry
|
|
|
Post by jltursan on Feb 19, 2021 10:25:28 GMT
Sure, I've seen something like this in games as Octukitty. I guess you can use a pushable blocks script with maybe some little tweaking to adapt it to a platform game context.
|
|
|
Post by Minilop on Feb 19, 2021 16:37:10 GMT
Yes its definitely possible. I have used this mechanic extensively in both my Cocoa games. Basically I started with the stock pushable script and ended up rewriting it for a 2D Platform game so that: - Blocks can be pushed left and right
- Player can jump on block (and jump off it)
- Blocks can be pushed off a platform and they will drop down to the platform below
- Blocks can be pushed such that they push an enemy as well (and crush them into a wall!)
- Blocks can be pushed off a platform and crush an enemy beneath
|
|
harry
Abandoned Uranium Working
Posts: 13
|
Post by harry on Feb 20, 2021 19:05:24 GMT
Thanks for the reply, I've visit your tutorial and I'm gonna try it Thank you very much I will try your games too
|
|
|
Post by jltursan on Feb 20, 2021 23:12:35 GMT
Yes its definitely possible. I have used this mechanic extensively in both my Cocoa games. Basically I started with the stock pushable script and ended up rewriting it for a 2D Platform game so that: - Blocks can be pushed left and right
- Player can jump on block (and jump off it)
- Blocks can be pushed off a platform and they will drop down to the platform below
- Blocks can be pushed such that they push an enemy as well (and crush them into a wall!)
- Blocks can be pushed off a platform and crush an enemy beneath
That's really cool!, you only lack to be able to destroy the blocks
|
|
|
Post by Minilop on Feb 27, 2021 9:35:31 GMT
Yes, it's only meant as a building block code, it's pretty easy to then extend it to create new mechanics for your games.
Also, I have just updated the tutorial so that it now uses the UNDOSPRITEMOVE command, previously I was just using adding and subtracting from the Player X when a Push fails. I think this is a better use of MPAGDs available commands.
|
|
harry
Abandoned Uranium Working
Posts: 13
|
Post by harry on Feb 27, 2021 11:34:12 GMT
Thanks for the update, I love your guides
|
|
|
Post by Jonathan Cauldwell on Feb 28, 2021 21:43:59 GMT
Also, I have just updated the tutorial so that it now uses the UNDOSPRITEMOVE command, previously I was just using adding and subtracting from the Player X when a Push fails. I think this is a better use of MPAGDs available commands. Definitely. It's faster and uses less memory.
|
|