Open Surge Forum

A fun 2D retro platformer inspired by Sonic games and a game creation system

You are not logged in.

Announcement

Our community has moved to Discord! https://discord.gg/w8JqM7m

#51 2018-08-21 18:24:31

SynfigMaster91
Member
Registered: 2017-10-10
Posts: 144

Re: Another underwater bug [SOLVED]

Alexandre wrote:
SynfigMaster91 wrote:

Ok, so far I managed to make the sprite loops, but however, there's a little new problem, when I press fire6, if you look closely on the video I'm sharing, you can notice the swim sprite position looks like being down before coming to its normal position.

hmmm, it works if I replace Speedy by a Surge sprite. I wonder if it could be a hot spot problem? (see the .spr file, compare with Surge's). Can you share Speedy with us?

In the meantime, try to replace state "swim" by this:

    state "swim"
    {
        springfy_player
        attach_to_player 0 0
        set_player_animation SD_PIXEL 0
        set_player_yspeed -90
        change_state "swimming"
    }

I tried the new state 'swim' and it works too much better! Thanks, Alex! big_smile

The little problem, but not serious though is that I can see a little black pixel dot under Speedy.

https://drive.google.com/open?id=1ZJr7g … oPDHMsKjkV

Should I hide it?

Offline

#52 2018-08-21 22:01:41

Alexandre
Administrator
From: Brazil
Registered: 2009-01-27
Posts: 3,279
Website

Re: Another underwater bug [SOLVED]

Congratulations wink

You can hide the black pixel by changing the SD_PIXEL sprite. How about creating a magenta/transparent pixel?

Offline

#53 2018-08-22 08:47:19

SynfigMaster91
Member
Registered: 2017-10-10
Posts: 144

Re: Another underwater bug [SOLVED]

Alexandre wrote:

Congratulations wink

You can hide the black pixel by changing the SD_PIXEL sprite. How about creating a magenta/transparent pixel?

How can I do that?

Offline

#54 2018-08-22 12:39:03

Alexandre
Administrator
From: Brazil
Registered: 2009-01-27
Posts: 3,279
Website

Re: Another underwater bug [SOLVED]

SynfigMaster91 wrote:

How can I do that?

Create a new sprite that accesses a magenta pixel and replace all occurrences of SD_PIXEL in the script by that.

Link: http://opensnc.sourceforge.net/wiki/index.php/Sprites

Offline

#55 2018-08-22 12:42:04

SynfigMaster91
Member
Registered: 2017-10-10
Posts: 144

Re: Another underwater bug [SOLVED]

Alexandre wrote:
SynfigMaster91 wrote:

How can I do that?

Create a new sprite that accesses a magenta pixel and replace all occurrences of SD_PIXEL in the script by that.

Link: http://opensnc.sourceforge.net/wiki/index.php/Sprites

I found a way to do that already! big_smile

I made a second pixel image and colored the black square to magenta.

Now the problem is fixed!

Thanks to you Speedy can swim underwater without problems! I'll share with ya the whole script on the assests section as a thank.

Offline

#56 2018-08-22 14:14:53

Alexandre
Administrator
From: Brazil
Registered: 2009-01-27
Posts: 3,279
Website

Re: Another underwater bug [SOLVED]

Congratulations smile

Offline

Board footer

Powered by FluxBB  hosted by tuxfamily.org