Hi, I'm making a game, but i want it to be so you can't jump through objects. I don't want to use colour sensing, and I want it to be compressed to the minimum amount of scripts (To be able to play project online, it is good graphics, and slow game if there is to many scripts Thanks!
Offline
Yeah, color sensing is no good. If you don't want a tile-based game, really the only other option left to you for collision involves the <touching [sprite] block>.
RHY has a really good platform collision system that doesn't use color sensing. You've probably seen it. It's as easy as: If I'm moving right and am touching the collision object move left, if I'm moving left and am touching the collision object move right, etc. It's a little hard to perfect though.
Alternatively you could use the "last good position" collision method. In that you have a ghost sprite that makes every move before the visible sprite. If the ghost sprite moves and is touching a collision object, it tells the visible sprite not to move. Otherwise, the main sprite jumps to the ghost sprite. Paddle2see's test account has an example of this.
Offline
[blocks<change x by( <touching color[ <forever if><when green flag clicked>]You could use a diffrent colour for each thing. ex. the top of the platform is one color the side, another, the bottom yet another, and the last side a fourth.
Offline
ssss wrote:
I don't want to use colour sensing
Offline