How can i make a sprite collide with a sprite? AKA creating a platform or simulated ground.
Offline
Is this what you have in mind?
http://scratch.mit.edu/projects/archmage/101212
Offline
one word: sencors. make a sencor with a goust effect of 100 that goes to your sprite's y position, and X + (experament with a couple of numbers, the goal is to have it right infront of the main sprite. The sencor should be a stright line, rather thick and when it touches the colour of a wall, it chages a variable to one, else 0. on the main sprite for the moving controlls, always have it so that you can only move when that variable is 0, and if it is 1, change the sprite's X by -1. now do the same for the other side. as for a floor, if you have a gravity variable, make it so that when its touching the colour of the floor, set gravity to 0, and change y by 1. hope that helps!
Offline