I tried to just load a sprite and set its coordinates to be equal to that of the hero.
This would work fine for a few steps, but the sprite would start moving farther and farther away from the hero location and eventually run off the screen.
I tried using the other variants of set slice x, but they all resulted in the same outcome.
Any suggestions for how one would pull this off?
I'd really have to see the script to help you out. but it seems like you made a math error somewhere. Put a negative were a positive should be or something. Or you're using Herox instead of heroPIXELx, but I guess that would be alot farther off then you're describing.
Oh, btw. Where've you been?
Oh, btw. Where've you been?
Well, what I've tried so far is to have a loop containing directional inputs that will shift the hero in the direction of the arrow key by some variable Hero Speed (4). Looking like:
Then later into the loop, I've got:
Near the top left corner of the map, it works just fine.
But once it leaves that 320x200 area, it just gets wonky.
I'm guessing there's some screen alignment shenanigans going on and I'll be needing some way to compensate for this.
busy
Code:
if(key is pressed (key:up))
then(
set hero direction (me, up)
put hero (me, hero pixel X (me), hero pixel Y (me) -- Hero Speed)
)
if(key is pressed (key:up))
then(
set hero direction (me, up)
put hero (me, hero pixel X (me), hero pixel Y (me) -- Hero Speed)
)
Then later into the loop, I've got:
Code:
put slice (Leader Sprite, hero pixel x (me), hero pixel y (me))
put slice (Leader Sprite, hero pixel x (me), hero pixel y (me))
Near the top left corner of the map, it works just fine.
But once it leaves that 320x200 area, it just gets wonky.
I'm guessing there's some screen alignment shenanigans going on and I'll be needing some way to compensate for this.
Quote:
Oh, btw. Where've you been?
busy



