Topic:   two sprites moving   (Read 11081 times)


0 Members and 1 Guest are viewing this topic.

Zoo


  • GMG Extraordinaire

  • ***


  • Posts: 1686
    • My Bandcamp
two sprites moving
« on: March 15, 2011, 04:54:45 PM »
How do you make two sprites move at once? using spritepath, of course
« Last Edit: March 15, 2011, 04:55:09 PM by zoo804 »
Kirby, your pudgy buddy from dream land, is back again on the game boy®!

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: two sprites moving
« Reply #1 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.
« Last Edit: March 15, 2011, 05:11:23 PM by KurtManion »
Just your average Weekend Warrior.
Yes I know I have bad spelling, it's what makes me such a good programmer!

"Old art, weather magnificent or wretched, is always the raw material of new art. The artist's job, though, is to

Zoo


  • GMG Extraordinaire

  • ***


  • Posts: 1686
    • My Bandcamp
Re: two sprites moving
« Reply #2 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.
Kirby, your pudgy buddy from dream land, is back again on the game boy®!

GMG Kurt


  • GMG-er

  • **


  • Posts: 682

  • Sorry for being such a noob
Re: two sprites moving
« Reply #3 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.
Just your average Weekend Warrior.
Yes I know I have bad spelling, it's what makes me such a good programmer!

"Old art, weather magnificent or wretched, is always the raw material of new art. The artist's job, though, is to

Zoo


  • GMG Extraordinaire

  • ***


  • Posts: 1686
    • My Bandcamp
Re: two sprites moving
« Reply #4 on: March 15, 2011, 06:33:44 PM »
I'd like to make it using spritepath, but two spritepaths can't go at once.
Kirby, your pudgy buddy from dream land, is back again on the game boy®!

Zoo


  • GMG Extraordinaire

  • ***


  • Posts: 1686
    • My Bandcamp
Re: two sprites moving
« Reply #5 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.
Kirby, your pudgy buddy from dream land, is back again on the game boy®!

EqwanoX


  • Administrator

  • GMG Extraordinaire

  • *****


  • Posts: 1180
Re: two sprites moving
« Reply #6 on: March 16, 2011, 09:53:51 AM »
scrolling maps can be done in 13 lines, tell him to check out v6

Connors


  • ^ This guy is amazing.

  • ****


  • Posts: 2374

  • It's a secret to everyone...
Re: two sprites moving
« Reply #7 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.
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: two sprites moving
« Reply #8 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.
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: two sprites moving
« Reply #9 on: March 16, 2011, 07:05:33 PM »
No :( I'm saying this is how you can make the scrolling smooth.
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/

rachealmark23


  • GMG Newbie

  • *

  • no avatar

  • Posts: 1

  • Gan is so awesome.
Re: two sprites moving
« Reply #10 on: January 15, 2024, 07:56:19 AM »
Whether you want to seem classy or informal, our 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.