Gb-studio: Actor Set Relative Position

Created on 23 Apr 2019  路  4Comments  路  Source: chrismaltby/gb-studio

I see there's Actor Set Position, but there is no Actor Set Relative Position!

Most helpful comment

This issue is fixed in commit 6c53c7c and can be closed.
@josefnpat
@chrismaltby

All 4 comments

What does that mean?

It鈥檚 okay I know what josefnpat means :-) there鈥檚 currently scripting events available for setting the x/y tile position of an actor to absolute values but no way to say move an actor two tiles to the left. Shouldn鈥檛 be too much of a problem and probably should add Actor Move Relative at the same time.

If my feature #76 is accepted, you could also use that to emulate this behaviour.

E.g, "Move Relative" x: 1, y: 0

Actor Get Position:
    actor_id,
    variable_x, variable_y

Increment Variable By 1:
    variable_x

Actor Set Position To Value:
    actor_id,
    variable_x, variable_y

This would result in the actor with id "actor_id" moving 1 unit to the right relative to its current position

This issue is fixed in commit 6c53c7c and can be closed.
@josefnpat
@chrismaltby

Was this page helpful?
0 / 5 - 0 ratings

Related issues

timsamoff picture timsamoff  路  4Comments

darkhog picture darkhog  路  6Comments

uKomodo picture uKomodo  路  5Comments

Veund picture Veund  路  5Comments

mrcampbell picture mrcampbell  路  5Comments