Topic:   Push sprite   (Read 19361 times)


0 Members and 2 Guests are viewing this topic.

Zoo


  • GMG Extraordinaire

  • ***


  • Posts: 1686
    • My Bandcamp
Push sprite
« on: February 17, 2011, 04:49:21 PM »
I just started using SC, and there are no examples of this in the help.
It sounds very important.
Anyway I like SC and want to use it more.
Thanks for the help
-zoo
Kirby, your pudgy buddy from dream land, is back again on the game boy®!

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: Push sprite
« Reply #1 on: February 17, 2011, 06:44:24 PM »
PUSHSPRITE isn't very different from MOVESPRITE, except MOVE sets it's x and y and PUSH adds/subtracts from it's position.

Example: PUSHSPRITE 1, x, y

Great to see you're trying both SC and GM. :3
« Last Edit: February 17, 2011, 06:46:28 PM by Connors »
Warning: The above post may have been modified multiple times.

"In a great game, the character must never perfectly obey the user's command"
 - Tim Rogers

http://connorspuzzles.tumblr.com/

Zoo


  • GMG Extraordinaire

  • ***


  • Posts: 1686
    • My Bandcamp
Re: Push sprite
« Reply #2 on: February 17, 2011, 07:52:11 PM »
Wheee! It works! Thanks connors.
Kirby, your pudgy buddy from dream land, is back again on the game boy®!

Zoo


  • GMG Extraordinaire

  • ***


  • Posts: 1686
    • My Bandcamp
Re: Push sprite
« Reply #3 on: February 17, 2011, 08:32:51 PM »
Howabouts a sprite collide command? If you need to know, I'm making a test minigame with falling snakes.  :D
Kirby, your pudgy buddy from dream land, is back again on the game boy®!

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: Push sprite
« Reply #4 on: February 17, 2011, 10:47:32 PM »
Look under "sprites" in the "Scripting Help" for SPRITESTOUCHING and SPRITETOUCHINGXY. It should explain it well enough.
Warning: The above post may have been modified multiple times.

"In a great game, the character must never perfectly obey the user's command"
 - Tim Rogers

http://connorspuzzles.tumblr.com/

Zoo


  • GMG Extraordinaire

  • ***


  • Posts: 1686
    • My Bandcamp
Re: Push sprite
« Reply #5 on: February 18, 2011, 03:06:25 PM »
Uh, it has no explaination, or examples.
Kirby, your pudgy buddy from dream land, is back again on the game boy®!

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: Push sprite
« Reply #6 on: February 18, 2011, 07:35:17 PM »
try "IF spritestouching(sprite1, sprite2) = TRUE then..."

And "IF spritetouchingxy(sprite, x, y) = TRUE then..."
Warning: The above post may have been modified multiple times.

"In a great game, the character must never perfectly obey the user's command"
 - Tim Rogers

http://connorspuzzles.tumblr.com/