Log In  

Cart #45635 | 2017-10-30 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Cart #45014 | 2017-10-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

P#44772 2017-09-30 13:05 ( Edited 2017-10-30 18:23)

There are two flip arguments for spr(), one for horizontal and one for vertical. You're only passing one to spr() in your _draw(), so the missing second flag (vertical) is defaulting to "no flip".

You basically need flipx and flipy fields in your player, set according to direction, and then to pass them both to spr().

P#44777 2017-09-30 15:08 ( Edited 2017-09-30 19:09)

I still can't seem to figure it out. :-/ What code would you recommend?

P#44808 2017-10-01 07:32 ( Edited 2017-10-01 11:32)

Here is the error:

spr (player.sprite, player.x, player.y,1,1,player.flip)

The SPR command has TWO arguments for flipping -- the first one for a horizontal flip, and the next for the vertical flip. You need something more like this:

spr (player.sprite, player.x, player.y, 1, 1,player.fliph, player.flipv)
P#44815 2017-10-01 08:46 ( Edited 2017-10-01 12:46)

That cart should have an "epileptic-inducing" warning!
x[

P#45022 2017-10-09 14:45 ( Edited 2017-10-09 18:45)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 15:38:51 | 0.011s | Q:22