Skeetendo

’Cause all games were better on the GBC

You are not logged in.

  • Index
  • → Help/Question
  • → Can two sprites in Pokémon Crystal be moved simultaneously?

#1 2016-07-12 20:29:31

Rangi
Member
Registered: 2016-05-09
Post 38/791

Can two sprites in Pokémon Crystal be moved simultaneously?

I want two overworld sprites to run away at the same time. Right now I'm doing this:

...
    applymovement ROUTE48_ALICE, AliceLeaveMovementData
    applymovement ROUTE48_BOB, BobLeaveMovementData
    ...

AliceLeaveMovementData:
    big_step_right
    big_step_right
    big_step_right
    big_step_right
    big_step_right
    step_end

BobLeaveMovementData:
    big_step_left
    big_step_left
    big_step_left
    big_step_left
    step_end

But this makes Alice leave and then Bob. I could have a separate applymovement call for each step, but that would still look like a bunch of alternating steps. Can I possibly have them both move at the same time? I don't recall if any default maps do that, otherwise I could copy them if so.


ROM hack: Pokémon Polished Crystal (GitHub) — version 2.2.0 released!

Offline

#2 2016-07-14 16:22:05

Miksy91
Member
Registered: 2010-10-16
Post 2,279/2,311

Re: Can two sprites in Pokémon Crystal be moved simultaneously?

I don't think this can be done (without asm hacking) if you want to make the person events to move in totally different directions. There is the "follow" command though which can be used to make the second person follow the first one who you move with "applymovement".

Offline

  • Index
  • → Help/Question
  • → Can two sprites in Pokémon Crystal be moved simultaneously?

Board footer

Powered by FluxBB