how do i make the platforms go diagonally to each other not on top of each other because when i try to put them diagonally they go on top of one another which is not what i am trying to achieve. Also how I add upgrades so you get like a bigger gun or faster shooting more bullets etc.
Offline
GDrama97 wrote:
how do you make it so when u jump on top of the enemies they die
Okay, I will try to explain. But I need to know if you want a scroller or if you want the player to warp to the next level.
To be able to jump on enemies and crush them:
Put this in a sensor sprite(maybe a black line, simple):
When gf clicked go to x: <[x position v] of [player]> y:< <[y position] of [player]> - (50)> // the number 50 is just a guess, you will have to experiment but just make sure it's under the player.Also put this in it:
When gf clicked Set [ghost v] effect to (100) show Forever If <touching? [enemy v]> broadcast [squashed! v] Stop script End EndThen, on your enemy:
When I receive [squashed! v] switch to costume [squashed v] set [dangerous? v] to [no] // this would be a variable that would tell the player if the enemy still can hurt because the player will crush the enemy and then touch it, so...When you make that "dangerous?" Variable, check the "for this sprite only" check.
When gf clicked Forever If < < [dangerous v] of [enemy v] > = [yes] > If <touching? [enemy v] > Broadcast [lost a life! v] End EndThere are other ways to do that, but this should do the trick.
Last edited by CAA14 (2013-02-23 22:37:31)
Offline
GDrama97 wrote:
is enemy a variable script
No, enemy is a sprite.
Regards,
CAA14
Offline
GDrama97 wrote:
how do you make the enemy script red like the one you showed mem
the color of the script shouldn't affect the result, but if you really want it red, shift click the r in the scratch icon, click turn fill screen off, move the block into the white space, alt click it, find "menu for me", click it, click change color, and set the color to red. it wont affect anything but the block color though.
Offline
GDrama97 wrote:
is the enemy script a variable
No.... It's a sprite. The enemy itself is the sprite,
Regards,
CAA14
Offline