Game Maker's Garage Forum

Game Creation => SilverCreator => Topic started by: Zoo on February 17, 2011, 04:49:21 PM

Title: Push sprite
Post by: Zoo 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
Title: Re: Push sprite
Post by: Connors 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
Title: Re: Push sprite
Post by: Zoo on February 17, 2011, 07:52:11 PM
Wheee! It works! Thanks connors.
Title: Re: Push sprite
Post by: Zoo 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
Title: Re: Push sprite
Post by: Connors 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.
Title: Re: Push sprite
Post by: Zoo on February 18, 2011, 03:06:25 PM
Uh, it has no explaination, or examples.
Title: Re: Push sprite
Post by: Connors on February 18, 2011, 07:35:17 PM
try "IF spritestouching(sprite1, sprite2) = TRUE then..."

And "IF spritetouchingxy(sprite, x, y) = TRUE then..."