Important Announcement
Forum has been made read-only. Please click here for more information or here to return to The Spriters Resource.

MFGG TKO DevLog - TSG Left
#14
Devlog 6

The particle system now supports a BaseAlpha (starting Alpha), scale and offset "simulation?". Just like how position is affected by velocity which is affected by acceleration, scale and offset (and rotation) also have their own velocity and acceleration. In the gif below, you should now be able to see the brick pieces shrink as they fade. The smoke puff now offsets as it rotates which creates a subtle swirl effect.

GIFS
[spoiler]
[Image: QnChgRv.gif][Image: mmYjMCG.gif]
[/spoiler]

I edited the camera shake so that it no longer lerps from the "shake" values. Imo it looks better.

Subactions now support multiple event Lists =O. It means nothing to you guys right now though heh. Basically, it just allows me to create parallel ... event lists ... for a subaction.

Code of the attack gif below in spoiler
[spoiler]
Code:
mit.heavyAttack_Up_Loop =
{
    main = function()
        local context = _coArgs.values[0]
        coroutine.yield()

        if(not events.isKeyPressed(context,keys.Up)) then                        
            events.setSubaction(context,'HeavyAttack_Up_End')
        end
    
        for i=0,15 do
            events.offensiveCollision(context,0, true, "Hammer", 0, 0, 135, 0, 10, vector2(0,-1), 9, 1)
            events.offensiveCollision(context,1, true, nil, 0, 0, 135, 0, 10, vector2(0,-5), 6, 1)
            events.synchronous(context,1)
            events.terminateCollisions(context)
        end
    end,
    gfx = function()
        local context = _coArgs.values[0]
        coroutine.yield()
    
        for i=0,2 do
            if(events.onGround(context)) then
            //this is the "smoke" gfx at the feet
                events.addParticleRelative_1(context,12,pVector2(0,5,0,0,0,0),pFloat(0),pVector2(.5,.5,-.5/1,-.5/1,0,0),pVector2.Zero,.5,true,false,-1)
            //these are the particles that create the "V"
                events.addParticleRelative_1(context,4,pVector2(0,10,-30,-30,0,0),pFloat(0,0,0),pVector2(0,0,1/.5,1/.5,0,0),pVector2.Zero,.5,true,true,1,20)
                events.addParticleRelative_1(context,4,pVector2(0,10,30,-30,0,0),pFloat(0,0,0),pVector2(0,0,1/.5,1/.5,0,0),pVector2.Zero,.5,true,true,1,20)
            end
            events.synchronous(context,5)
        end
    end,
    sfx = function()
        local context = _coArgs.values[0]
        coroutine.yield()
    
        events.playSound(context,27,.1)
    
        if(events.onGround(context)) then
            events.playSound(context,20,.01)    
        end    
    end
}
[/spoiler]
Which produces:

GIFS
[spoiler]
[Image: 80F8aZK.gif]
[/spoiler]

I also spent a good day or two doing some memory optimizing. Not much to say here. I just used a good ol profiler and looked for memory leaks and garbage and got rid of most of em. Animation datas are preloaded once, cached, and then deep copied (animations are shallow copied) when asked for. That means that I'll no longer load the same 900+ block animation datas for that block debug level somewhere above but instead just create copies for it which means faster loading and less garbage....

I also got the slope rotation stuff fixed... Not much to say.

Cam wanted scan lines so:
GIFS
[spoiler]
[Image: vl5emny.gif]
[/spoiler]
--------------------------------

Edit: Mit wanted to be able to do the hammer spin in air + a small boost:
GIFS
[spoiler]
[Image: LGip2zp.gif]
[/spoiler]
-----------------------------

PS. -Everything- is placeholder. I'm still doing the core coding stuff. Once that's done, we should be able to actually 'start' the game and it should pick up speed a bit.

Comments are welcome. If you have any questions about how some things work on the coding side, I'd be happy to explain.


Messages In This Thread
MFGG TKO DevLog - TSG Left - by TheShyGuy - 01-10-2014, 07:10 PM
RE: Mfgg TKO DevLog - by Neweegee - 01-10-2014, 09:09 PM
RE: Mfgg TKO DevLog - by TheShyGuy - 01-10-2014, 10:10 PM
RE: Mfgg TKO DevLog - by Dazz - 01-11-2014, 10:43 AM
RE: Mfgg TKO DevLog - by TheShyGuy - 01-11-2014, 06:27 PM
RE: Mfgg TKO DevLog - by Kosheh - 01-11-2014, 12:20 PM
RE: Mfgg TKO DevLog - by Phaze - 01-12-2014, 02:33 AM
RE: Mfgg TKO DevLog - by TheShyGuy - 01-13-2014, 01:02 AM
RE: Mfgg TKO DevLog - by TheShyGuy - 01-15-2014, 03:01 AM
RE: MFGG TKO DevLog - by TheShyGuy - 01-17-2014, 01:52 AM
RE: MFGG TKO DevLog - by Mit - 01-20-2014, 11:23 PM
RE: MFGG TKO DevLog - by TheShyGuy - 01-24-2014, 08:21 PM
RE: MFGG TKO DevLog - by TheShyGuy - 01-27-2014, 12:34 AM
RE: MFGG TKO DevLog - by TheShyGuy - 02-01-2014, 05:04 PM
RE: MFGG TKO DevLog - by TheShyGuy - 02-17-2014, 05:47 PM
RE: MFGG TKO DevLog - by MC Jimmy - 02-17-2014, 07:50 PM
RE: MFGG TKO DevLog - by TheShyGuy - 02-18-2014, 05:20 PM
RE: MFGG TKO DevLog - by Mit - 02-19-2014, 08:10 PM
RE: MFGG TKO DevLog - by Mit - 03-06-2014, 03:43 PM
RE: MFGG TKO DevLog - by TheShyGuy - 03-23-2014, 06:01 PM
RE: MFGG TKO DevLog - by TheShyGuy - 04-12-2014, 02:52 PM
RE: MFGG TKO DevLog - by TheShyGuy - 04-17-2014, 03:01 PM
RE: MFGG TKO DevLog - TSG Left - by TheShyGuy - 05-03-2014, 03:00 PM
RE: MFGG TKO DevLog - TSG Left - by Kelvin - 05-06-2014, 08:40 PM
RE: MFGG TKO DevLog - TSG Left - by TheShyGuy - 05-06-2014, 09:10 PM
RE: MFGG TKO DevLog - TSG Left - by Kelvin - 05-06-2014, 09:51 PM
RE: MFGG TKO DevLog - TSG Left - by TheShyGuy - 05-06-2014, 09:56 PM
RE: MFGG TKO DevLog - TSG Left - by Kelvin - 05-07-2014, 11:31 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)