What are you working on?

Discussion in 'Off Topic' started by johnwo, Jun 20, 2016.

  1. flyingsaucerinvasion

    flyingsaucerinvasion Member

    Joined:
    Jun 20, 2016
    Posts:
    1,819
    Last edited: Sep 14, 2018
    RujiK, studio furukawa and Vether like this.
  2. Vether

    Vether Member

    Joined:
    Jun 21, 2016
    Posts:
    946
  3. flyingsaucerinvasion

    flyingsaucerinvasion Member

    Joined:
    Jun 20, 2016
    Posts:
    1,819
    Last edited: Nov 14, 2018
    RujiK, Morendral and Cantavanda like this.
  4. sitebender

    sitebender Member

    Joined:
    Sep 13, 2016
    Posts:
    692
    Breaks down door!

    AVATARS!!!!!

    [​IMG]

    I have 20 of them! It's all a process to get better at art. I say this knowing full well I have no avatar.

    [​IMG]
     
    Morendral likes this.
  5. trentallain

    trentallain Member

    Joined:
    Aug 6, 2016
    Posts:
    416
    Last edited: Nov 15, 2018
  6. flyingsaucerinvasion

    flyingsaucerinvasion Member

    Joined:
    Jun 20, 2016
    Posts:
    1,819
    Nebulas would be neat, but I can't think of a way around needing each nebular particle to be depth sorted every frame. And then that would cause the star "flares" to need to be done differently as well.
     
  7. trentallain

    trentallain Member

    Joined:
    Aug 6, 2016
    Posts:
    416
    What if they were parallax 2D?
     
  8. flyingsaucerinvasion

    flyingsaucerinvasion Member

    Joined:
    Jun 20, 2016
    Posts:
    1,819
    Actually, that gave me an interesting idea, but it would only work for very distant nebulas... farther than any stars (otherwise the star flares would still need to be done differently).
     
    trentallain likes this.
  9. Lucia

    Lucia Member

    Joined:
    Oct 12, 2018
    Posts:
    53
    I made a lot of small games for jams or stupid minigames. Above all with other guys or friends. Now I want to make my first GM full game totally alone! Not so easy, but I want to try!
     
  10. ethian

    ethian Member

    Joined:
    Apr 19, 2018
    Posts:
    254
    Currently working on assets for a private game of mine...

    I'm also working on that game, too...
     
  11. melerski

    melerski Member

    Joined:
    Jun 21, 2016
    Posts:
    252
    Working on a sci-fi game where you fight off invasions with a powerful mech.

    PLASMA GUARD
    [​IMG]
     
    Last edited: Nov 18, 2018
  12. melerski

    melerski Member

    Joined:
    Jun 21, 2016
    Posts:
    252
    Also working on my spacecraft flying game.

    RAUM DRIVE
    [​IMG]
     
    Last edited: Nov 18, 2018
  13. Crgreno29!

    Crgreno29! Member

    Joined:
    Nov 20, 2018
    Posts:
    6
    Wow all this work is beautiful.
     
  14. ethian

    ethian Member

    Joined:
    Apr 19, 2018
    Posts:
    254
    Currently working on stuff that can make fans angry, like educational fan animations of Happy Tree Friends where nobody gets hurt, or an I Wanna Be The Guy fangame that is easy and has original, own assets or something else instead of using assets from other videogames.
    Everything without mature themes nor content, but as those stuff of mine can make fans angry, as i told before, i won't publish them all... all those stuff is for my children...
     
  15. BenSunhoof

    BenSunhoof Member

    Joined:
    Nov 30, 2018
    Posts:
    31
    I'm currently working on myself.
     
  16. Gzebra

    Gzebra Member

    Joined:
    Aug 3, 2017
    Posts:
    36
    Wow, I commend you for your bravery.. No dude, I'm serious! You might have meant it as a sly joke, but I'm serious! ****ing respect! Most people try to escape themselves, and knowing myself, I see why.. Keep on working friend! :D
     
  17. Capptianm

    Capptianm Member

    Joined:
    Jul 15, 2017
    Posts:
    70
  18. Binary Orange Studios

    Binary Orange Studios Member

    Joined:
    Mar 26, 2018
    Posts:
    21
    Today, I drew up some concept sprite for my main character, and am fairly happy with how it turned out, though there are still some tweaks I need to make.
    [​IMG]

    Over the course of the week, I'll be animating him as well. I'm going to keep it simple, so 3-4 frame animations are my target.

    Pay no attention to the ground tiles and those "trees" - those were done in ten seconds within GMS 2 itself, just to give my character something to walk on top of/behind. I promise I'm not that bad at drawing trees. :p
     
  19. Bluetail7

    Bluetail7 Member

    Joined:
    Jun 20, 2016
    Posts:
    105
    [​IMG]
    Working on a whip
     
  20. ethian

    ethian Member

    Joined:
    Apr 19, 2018
    Posts:
    254
    Me and my friend, we're working on... random animated assets...

    Temmie Chang's artwork from Deltarune and others inspired us to make them...
     
  21. Niels

    Niels Member

    Joined:
    Jun 22, 2016
    Posts:
    760
    I would really like to know how you did the parralax effect, and did you add the blur to the background with a shader or in photoshop?
     
  22. muki

    muki Member

    Joined:
    Mar 5, 2017
    Posts:
    196
    All shaders and surfaces. The tile assets in the background are the exact same as used in the foreground. I can't run the game right now since a GMS update broke how I was using surfaces (again), but I can try and explain it anyway with images and code.

    There are three tile layers. The extreme background, the middle background, and the foreground. I use a rendering control object top do everything, and render the layers in a back-to-front order. And only the view, not the room. I juggle quite a few surfaces, and I havent worked on this project in quite a while, so I forget some details on how I made it happen.


    1. Draw everything in the extreme background to 1 surface.Tiles (using draw_tilemap). Also draw other stuff like slight translucent coloration for a fog effect.

    Some other details, like making sure texture filtering is on for the first few steps (because I turn it off later). And you'll notice I juggle between surface_canvas_1/2 a lot. Drawing from 1 to 2 or 2 to 1 is a lot safer than a surface drawing to itself. There is also some offsetting that I need for parallax later on, hence the -48 and -24 offset on that one line.

    Code:
    //temporarily enable texture filtering
    gpu_set_texfilter(true);
    
    //draw background
        surface_set_target(surface_canvas_1);
          draw_tilemap(layer_background_tilemap,(0-cam_x), (0-cam_y));
          draw_tilemap(layer_back_tilemap, 48-cam_x, 24-cam_y);
          draw_sprite_ext(fog, 0, 0, 0, 3, 3, 0, c_white, fog_density);                //fog
        surface_reset_target();
    
    2. Apply a strong blur shader to the surface. Forget which shader it is exactly, I found it on the marketplace.

    This is also where the actual parallax happens. The line with //0.85 is where I'm redrawing the extreme background surface to the middle background, but with a scaling of 0.85. And because I did an offset of -48/-24 to the tilemap coords earlier, it's "recentered". Also, because I'm shrinking backgrounds, I have to make my background surfaces larger than my foreground surfaces, so that the edges of the backgrounds abruptly cut. My view is 480x270, but some of my surfaces are 600x400 so I can have that extra breathing room when scaling them.

    Code:
    //apply shader to background
        surface_set_target(surface_canvas_2);
        shader_set(shd_blur_gaussian);
          shader_set_uniform_f(uRESOLUTION,600, 400);
          shader_set_uniform_f(uRADIUS,blur_far); 
          draw_surface_ext(surface_canvas_1, 0, 0, 0.85, 0.85, 0, c_white, 1);        //0.85
        shader_reset();
        surface_reset_target();
    
    3. Draw everything in the middle background to 2 surfaces.Tiles (using draw_tilemap) to one surface, and objects (using layer_script_begin/end and a custom draw event in those scripts to another surface, using event_type ev_draw). I didn't have any objects in the extreme background because I saw little point. Also do the blur and parallax again.

    Code:
    //draw middle
        surface_set_target(surface_canvas_1);
          draw_surface(surface_canvas_2, 0, 0);
          draw_tilemap(layer_middle_tilemap, (0-cam_x)+6, (0-cam_y)+6);
          //gpu_set_blendmode(bm_add);
          draw_sprite_ext(fog, 0, 0, 0, 3, 3, 0, c_white, fog_density);                //fog
          draw_surface(global.layer_middle_instances_surface, 0, 0);
          //gpu_set_blendmode(bm_normal);
        surface_reset_target();
    
    //apply shader to middle
        surface_set_target(surface_canvas_2);
        shader_set(shd_blur_gaussian);
          shader_set_uniform_f(uRESOLUTION,600, 400);
          shader_set_uniform_f(uRADIUS,blur_close);
          draw_surface_ext(surface_canvas_1, 0, 0, 0.95, 0.95, 0, c_white, 1);        //0.95
        shader_reset();
        surface_reset_target();
    
    4. Here I redisable texture filtering because I'm about to draw the foreground, and I want those foreground pixels sharp. No scaling or blur here.

    Code:
    //re-disable texture filtering
    gpu_set_texfilter(false);
     
    //draw foreground
        surface_set_target(surface_canvas_0);
          draw_surface(surface_canvas_2, 0, 0);
          draw_tilemap(layer_front_tilemap, 0-cam_x, 0-cam_y);
          draw_surface(global.layer_instances_surface, 0, 0);
        surface_reset_target();
    
    There's other stuff after this, such as a color remap shader and vignetting. I remember taking this a few weeks to figure out. And a lot of experimentation. A number of other unrelated things going on, such as adding tile variation at runtime with a script.

    I like the scaling method for parallax better than just scrolling, because then I can use tiles for the background.

    Obviously this won't work as a straight copy-paste, since there's the create/step events and a myriad of other scripts related to layer_script_begin/end, and because it's been so long, I don't remember exactly how much of it I hard-coded and how much I streamlined into scripts. But hopefully this can give you ideas.
     
    Last edited: Dec 23, 2018
    Rob and Niels like this.
  23. Niels

    Niels Member

    Joined:
    Jun 22, 2016
    Posts:
    760
    Thanks for explaining! I once wrote a blur shader from Xor's tutorials, but that one was highly inefficient, and not nearly als good looking as your blur. The parallax effect reminds me of hollow knight
     
  24. muki

    muki Member

    Joined:
    Mar 5, 2017
    Posts:
    196
    Hollow Knight was my direct inspiration for this!
     
    Niels likes this.
  25. Niels

    Niels Member

    Joined:
    Jun 22, 2016
    Posts:
    760
    I read that the parallax effect inhollow knight is direct result of using a perspective camera in a 2D enviroment.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice