I think if I drew the black as a rectangle instead of using draw_clear_alpha you would see the whole surface sliding down the screen as the player goes down, sort of similar to how your light circle moves down in one of your gifs. Here is the bug in action: (the imgur servers seem to be on fire right now so it might not work) Surface_set_target(global.light) //Draw to surface instead of the screenĭraw_clear_alpha(c_black,1) // Clears the screen with an alpha-blended given colour.ĭraw_set_blend_mode(bm_subtract) // Subtract Light Areasĭraw_sprite_ext(spr_Light,0,x-view_xview+100,y-view_yview+100,1,1,0, c_white, 1) ĭraw_sprite_ext(spr_SkyLight,0,x-view_xview+100,y-view_yview+100,1,1,0, c_white, 1) ĭraw_surface(global.light,view_xview-100,view_yview-100) Global.light=surface_create(view_wview+200,view_hview+200) //Create Surface. It's all done in the draw event and I'm using objects with sprites for the lights instead of shapes like you're doing: // Make sure the surface exists(prevents crash on fullscreen toggle) It's interesting to see you're doing a lot of the work in your step event. The next gm(48) will take place on Oct 20, 2018. The gm(48) is a casual, fun game jam that helps you to learn and grow as a developer. Shining a light on high-quality projects and resources created by our community.įor more than 8 years, the tight-knit community of /r/gamemaker has run the game jam gm(48) for GameMaker developers of all ages and experience levels. Share the latest pictures and videos of your gameĪre you in need of motivation? Then take a stab at these creative challenges. Scheduled content ScheduleĪsk questions, ask for assistance or ask about something else entirely.ĭiscuss game design and game development. Join in the conversation, get help with any issues you might have and connect with your fellow developers! We also have a Steam Group for playing games. r/gamemaker sponsors three chat-rooms: IRC, a Discord server, and a Slack team.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |