Perhaps this could be reduced to a more compact for loop. There's quite a lot of repetition here! The only thing changing in each draw function is the x and y offset. 6 is a good starting point): draw_sprite_ext(sprite_index, //sprite Here's the code (keep in mind you'll need to define thickness. (Seriously, though, if this is more efficient with a shader please inform me!!!) Is that ineffienct? I don't know-this is the simple, dumb way that works. So we essentially draw the sprite 8 times! Just to make an outline. And also up, down, downleft, upleft, upright, downright. And then we draw it again with the same color offset to the right. Before we draw the sprite, we draw a version of it that is entirely black (or whichever color you like, and sorry this method does not work uniformly with transparency), that is offset to the left. The most obvious method is to use a shader, which I briefly attempted, but I also found that I could achieve the same effect without a noticeable performance loss using draw functions. I looked into methods for drawing an outline around a sprite. 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. Content must be appropriately flaired at the time of submission.Technical support requests are to be directed to YoYo Games Support. Promotional content must contribute to the community.Show respect to all users of the subreddit and have patience with other users when providing help.Content must demonstrate a previous effort and research before posting and must provide adequate detailed information.Content must not use "click-bait" titles, shortened links, or solicitation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |