Game Maker's Garage Forum

Game Creation => GameMaker => Topic started by: Zoo on March 15, 2011, 04:54:45 PM

Title: two sprites moving
Post by: Zoo on March 15, 2011, 04:54:45 PM
How do you make two sprites move at once? using spritepath, of course
Title: Re: two sprites moving
Post by: GMG Kurt on March 15, 2011, 05:10:17 PM
Quote
How do you make two sprites move at once? using spritepath, of course
would the second sprite be an enemy, or another player?
P.S. why not just keep this in the topic sprite animation, intend of starting a new topic. it keeps the topic list less clutter y.
Title: Re: two sprites moving
Post by: Zoo on March 15, 2011, 05:13:05 PM
Yeah, I know. One of the moving sprites is the background, but the enemies need to move as well.
Title: Re: two sprites moving
Post by: GMG Kurt on March 15, 2011, 05:18:32 PM
Quote
Yeah, I know. One of the moving sprites is the background, but the enemies need to move as well.
IF I were you I'd set a timer variable set to 10 centi-secounds, or something better (depending on the speed you want) and then in the block you type:

x = x - #
SPRITE 2 (backround) x y data

to make the background move, and you'd need the code for random enemy spawns.
I would do it this way and then have extra levels on different cards. So that you can still have a MAX of 8 enemies.
Title: Re: two sprites moving
Post by: Zoo on March 15, 2011, 06:33:44 PM
I'd like to make it using spritepath, but two spritepaths can't go at once.
Title: Re: two sprites moving
Post by: Zoo on March 15, 2011, 07:58:33 PM
Know how to make one thing scroll like ten times through the background?
-zoo
P.S. My brother's really mad at GM. He just speant like 1 1/2 hours making a map like 10000 pixels long and it doesn't scroll right.
Title: Re: two sprites moving
Post by: EqwanoX on March 16, 2011, 09:53:51 AM
scrolling maps can be done in 13 lines, tell him to check out v6
Title: Re: two sprites moving
Post by: Connors on March 16, 2011, 10:55:56 AM
The way I did a scrolling BG was to copy the beginning of the sprite (one length of the screen) and paste that on the end. Then when it reaches the end, it looks exactly like the beginning and you can just move it back to where it started without the player noticing the jump.
Title: Re: two sprites moving
Post by: Zoo on March 16, 2011, 03:14:12 PM
Oh, He's only doing the art. And I don't really need it to happen on keydown or anything I just need it to keep scrolling in the background for a space shooter.
Title: Re: two sprites moving
Post by: Connors on March 16, 2011, 07:05:33 PM
No :( I'm saying this is how you can make the scrolling smooth.
Title: Re: two sprites moving
Post by: rachealmark23 on January 15, 2024, 07:56:19 AM
Whether you want to seem classy or informal, our Cunk on Earth Outfits (https://www.thejacketspot.com/product-category/cunk-on-earth-outfits/) are made to suit all fashion tastes. We have a variety of options, from leather jackets to fashionable coats, that will undoubtedly improve your sense of style.