MEMalguy [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=24895 CatJack! <p><img style="margin-bottom:16px" border=0 src="https://www.lexaloffle.com/bbs/files/24895/CatJack.png" alt="" /><a href="https://www.lexaloffle.com/bbs/files/24895/CJ01.png" target=_view_image><img style="margin-bottom:16px" border=0 src="https://www.lexaloffle.com/bbs/files/24895/CJ01.png" width=160 height=160 alt="" /></a><a href="https://www.lexaloffle.com/bbs/files/24895/CJ02.png" target=_view_image><img style="margin-bottom:16px" border=0 src="https://www.lexaloffle.com/bbs/files/24895/CJ02.png" width=160 height=160 alt="" /></a></p> <p> <table><tr><td> <a href="/bbs/?pid=63709#p"> <img src="/bbs/thumbs/pico8_catjack-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=63709#p"> catjack</a><br><br> by <a href="/bbs/?uid=24895"> MEMalguy</a> <br><br><br> <a href="/bbs/?pid=63709#p"> [Click to Play]</a> </td></tr></table> </p> <p>CatJack! The one and only black cat blackjack game. (Concept art.) I may or may not try and learn how to properly code this. If anybody would like to collaborate on this, I'm <em>all in</em>.</p> https://www.lexaloffle.com/bbs/?tid=33935 https://www.lexaloffle.com/bbs/?tid=33935 Sat, 20 Apr 2019 00:35:25 UTC H O N E Y B E E <p> <table><tr><td> <a href="/bbs/?pid=51017#p"> <img src="/bbs/thumbs/pico52012.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=51017#p"> H O N E Y B E E</a><br><br> by <a href="/bbs/?uid=24895"> MEMalguy</a> <br><br><br> <a href="/bbs/?pid=51017#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=31043 https://www.lexaloffle.com/bbs/?tid=31043 Fri, 30 Mar 2018 01:01:07 UTC Title Animation <p>I am looking to hopefully animate the title of my title screen. Are there any good tutorials that you recommend? I really love the sparkles in TRASEVOL_DOG's <a href="https://www.lexaloffle.com/bbs/?pid=49488">Mushroom D&eacute;licieux</a>, as well as how the title moves up and down. I attempted to isolate the code for it, but I can't seem to figure all of it out. I tried referencing the 'hello' demo to animate the motion of my title too. :-/ Any help is appreciated.</p> https://www.lexaloffle.com/bbs/?tid=30809 https://www.lexaloffle.com/bbs/?tid=30809 Thu, 22 Feb 2018 12:38:36 UTC Pickups using mget/mset. <p>Coding is in an entirely different realm than what I am used to. That being said, attempting to create a pickup item has been a bit of a nuisance. I am trying to avoid collisions and utilize tiles/sprites instead. With what I currently have, how can I impliment mget/mset to make an item disappear or even be replaced with another sprite when the player interacts with it? I have tried to mimic the 'solid_tile' format used with each btn and tried to figure out <a href="https://www.lexaloffle.com/bbs/?uid=12806"> @morningtoast</a>'s <a href="https://www.lexaloffle.com/bbs/?tid=3116">method</a>...</p> <p> <table><tr><td> <a href="/bbs/?pid=46345#p"> <img src="/bbs/thumbs/pico49475.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=46345#p"> Game Shell WIP</a><br><br> by <a href="/bbs/?uid=24895"> MEMalguy</a> <br><br><br> <a href="/bbs/?pid=46345#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=30802 https://www.lexaloffle.com/bbs/?tid=30802 Wed, 21 Feb 2018 10:54:02 UTC Making Pickup Item Disappear <p>I am using a sprite tile as a pickup item. When the player interacts with it, I need it to just disappear. How can I achieve this? I was imagining something along this line:</p> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre> if(pickup_tile(player.x-1,player.y) == false) then pal(0) end </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> https://www.lexaloffle.com/bbs/?tid=30704 https://www.lexaloffle.com/bbs/?tid=30704 Wed, 31 Jan 2018 09:39:31 UTC Pickup: Sprite Replacement <p>I have been using tiles as a placeholder, as I have not yet learned how to work with collisions. At the moment, I am trying to figure out how to replace sprite 34 with sprite 35 when the player interacts with it. Any help is appreciated.</p> <p> <table><tr><td> <a href="/bbs/?pid=46345#p"> <img src="/bbs/thumbs/pico46344.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=46345#p"> HBShell</a><br><br> by <a href="/bbs/?uid=24895"> MEMalguy</a> <br><br><br> <a href="/bbs/?pid=46345#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=30269 https://www.lexaloffle.com/bbs/?tid=30269 Wed, 15 Nov 2017 19:26:13 UTC HBShell <p> <table><tr><td> <a href="/bbs/?pid=46345#p"> <img src="/bbs/thumbs/pico49475.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=46345#p"> Game Shell WIP</a><br><br> by <a href="/bbs/?uid=24895"> MEMalguy</a> <br><br><br> <a href="/bbs/?pid=46345#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=46345#p"> <img src="/bbs/thumbs/pico46349.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=46345#p"> HBShellGrass</a><br><br> by <a href="/bbs/?uid=24895"> MEMalguy</a> <br><br><br> <a href="/bbs/?pid=46345#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=46345#p"> <img src="/bbs/thumbs/pico46344.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=46345#p"> HBShell</a><br><br> by <a href="/bbs/?uid=24895"> MEMalguy</a> <br><br><br> <a href="/bbs/?pid=46345#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=30268 https://www.lexaloffle.com/bbs/?tid=30268 Wed, 15 Nov 2017 19:18:55 UTC Sparkle Pickup <p>I am a baby learning to crawl when it comes to PICO-8. So far I have created a pickup by using a tile flag. I figure I need to add an if statement to my gameupdate(), but I can't seem to figure out how to get the sprite to disappear when the player touches it. I was also hoping to add the death sparkle particle used in Jelpi. Does anybody have the isolated code? Are there any good tutorials that can show me how to create proper collision boxes based on the sprite and not the entire tile? Thank you!</p> <p> <table><tr><td> <a href="/bbs/?pid=#p"> <img src="/bbs/thumbs/pico45269.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=#p"> Shell</a><br><br> by <a href="/bbs/?uid=24895"> MEMalguy</a> <br><br><br> <a href="/bbs/?pid=#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=30114 https://www.lexaloffle.com/bbs/?tid=30114 Wed, 25 Oct 2017 20:36:50 UTC Particles <p>I am trying to figure out how to isolate the randomized butterfly particle that <a href="http://pico8.p1x.in">Happy Little Island</a> uses. It is activated when the player interacts with a flagged tile. In my prototype, the flagged tile is the grass (spr(32)) and the butterfly/particle is spr(34,35). I am clearly missing something, but I can't seem to problem-solve my way through it.</p> <p> <table><tr><td> <a href="/bbs/?pid=#p"> <img src="/bbs/thumbs/pico45269.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=#p"> Shell</a><br><br> by <a href="/bbs/?uid=24895"> MEMalguy</a> <br><br><br> <a href="/bbs/?pid=#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=30113 https://www.lexaloffle.com/bbs/?tid=30113 Wed, 25 Oct 2017 15:47:56 UTC Tile Animation EDIT <p>Hi. I am hoping to add animated water to my game by just using a few tiles that loop. I can't seem to find any good resources for animated background elements though. I mostly just find animations for characters or interactive objects. </p> <p>EDIT: I greatly appreciate all of these responses. I guess what I'm asking is how do I animate an object? Most of what I find is how to animate a player so it's generally based off of &quot;if btn(0) then...&quot; But I just want a standalone animated object that's constantly in loop throughout the game.</p> https://www.lexaloffle.com/bbs/?tid=30081 https://www.lexaloffle.com/bbs/?tid=30081 Wed, 18 Oct 2017 14:41:25 UTC Unwanted Diagonal Movement <p>I implemented code for wall detection and now the player moves diagonally across the y-axis, rather than just straight up and down. What am I missing?</p> <p> <table><tr><td> <a href="/bbs/?pid=#p"> <img src="/bbs/thumbs/pico45113.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=#p"> Shell</a><br><br> by <a href="/bbs/?uid=24895"> MEMalguy</a> <br><br><br> <a href="/bbs/?pid=#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=30058 https://www.lexaloffle.com/bbs/?tid=30058 Wed, 11 Oct 2017 11:17:58 UTC Walls and Collisions and Maps, Oh My! <p>I have been tinkering with Zep's &quot;Wall Collision Example&quot;, but I can't seem to get it to work. How can I make boundaries/walls (represented by the four pixels arranged in a square)?</p> <p>UPDATE: If you are brand spankin' new to PICO-8 and need a tutorial to build walls and boundaries around your map, I highly recommend Uncle Matt on Youtube. ;-) Start <a href="https://www.youtube.com/watch?v=7R8IHTEwmGU&amp;amp;index=4&amp;amp;list=PL_T5GuTZSAoC63B8nVmstVNJA5odk-ViH">here</a>.</p> <p> <table><tr><td> <a href="/bbs/?pid=#p"> <img src="/bbs/thumbs/pico45064.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=#p"> Shell</a><br><br> by <a href="/bbs/?uid=24895"> MEMalguy</a> <br><br><br> <a href="/bbs/?pid=#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=30055 https://www.lexaloffle.com/bbs/?tid=30055 Tue, 10 Oct 2017 14:20:38 UTC Randomly Generated Event <p>Okay. I have created randomly generated flashes. However, how can I make the flashes themselves into a randomly generated event? (I am trying to achieve a thunderstorm effect that roles through at random points in the gameplay.)</p> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre> flash = false timer = 0 function _draw() cls() if flash then rectfill (0,0,127,127,7) end function _update() timer -= 1 if timer &lt;= 0 then timer = 120 end if flr(rnd(100)) &lt;= 10 then flash = true else flash = false end end end </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> https://www.lexaloffle.com/bbs/?tid=30045 https://www.lexaloffle.com/bbs/?tid=30045 Sat, 07 Oct 2017 22:47:28 UTC Programmer Gig <p>I am a designer and artist, not a programmer. This would be a casual gig and a symbiotic relationship. The concept I have in mind is a relaxed sandbox game about a honey bee. Simple enough. Let me know if you are up to the fun. </p> https://www.lexaloffle.com/bbs/?tid=30036 https://www.lexaloffle.com/bbs/?tid=30036 Wed, 04 Oct 2017 19:17:40 UTC Randomly Generated Thunder Storm <p>I am attempting to make the screen flash and shake. However, I would like it to be randomly generated. I vaguely researched the use of srand/rnd, but I ultimately do not know how to implement the proper code into what I currently have. </p> <p>Warning: I have no idea what I'm doing.</p> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre> player = {} player.x = 60 player.y = 60 player.sprite = 0 player.speed = 1 player.moving = false player.timer = 1 music(0) cam_x = 0 cam_y = 0 fliph = false flipv = false shake = 0 function _rand function _draw() cls() camera (cam_x,cam_y) cam_x = player.x-60 cam_y = player.y-60 map(0,0,0,0,16*8,16*2,0) --map(0,0,0,0,16,8) --map(0,0,0,64,16,8) spr (player.sprite, player.x, player.y,1,1,player.fliph,player.flipv) end function movex() player.moving = true player.sprite += 1 if player.sprite &gt; 3 then player.sprite = 2 end end function movey() player.moving = true player.sprite += 1 if player.sprite &gt; 5 then player.sprite = 4 end end function _update() player.moving = false if btn(0) then player.x -= player.speed movex() player.fliph = true elseif btn(1) then player.x += player.speed movex() player.fliph = false elseif btn(2) then player.y -= player.speed movey() player.flipv = true elseif btn(3) then player.y += player.speed movey() player.flipv = false end -- if not player.moving then --player.sprite = 0 -- end if not player.moving then player.timer = player.timer+1 end if player.timer &gt;=30 then player.sprite = 1 end if player.timer &gt;=60 then player.sprite = 0 player.timer = 0 end if player.moving then player.timer = 0 end end </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> https://www.lexaloffle.com/bbs/?tid=30029 https://www.lexaloffle.com/bbs/?tid=30029 Tue, 03 Oct 2017 15:47:32 UTC Honeybee: Flash Edit <p> <table><tr><td> <a href="/bbs/?pid=44772#p"> <img src="/bbs/thumbs/pico45635.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=44772#p"> Shell</a><br><br> by <a href="/bbs/?uid=24895"> MEMalguy</a> <br><br><br> <a href="/bbs/?pid=44772#p"> [Click to Play]</a> </td></tr></table> </p> <p> <table><tr><td> <a href="/bbs/?pid=44772#p"> <img src="/bbs/thumbs/pico45014.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=44772#p"> Edit.Flash</a><br><br> by <a href="/bbs/?uid=24895"> MEMalguy</a> <br><br><br> <a href="/bbs/?pid=44772#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=30011 https://www.lexaloffle.com/bbs/?tid=30011 Sat, 30 Sep 2017 13:05:32 UTC Maps and Borders <p>Okay. So, I am brand spankin' new to coding. I am not quite sure what the proper lingo is. </p> <p>I am attempting to create a sandbox game, but I have no idea how to make it so that when players reach the edge of the playable screen, they can then continue on into a new screen. &quot;Space Delivery!&quot; and &quot;Carmina's World&quot; accomplishes this.</p> <p>Please let me know if I am not articulating this properly. Any help is appreciated.</p> <p>This is all of the code I currently have:</p> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre> player = {} player.x = 60 player.y = 60 player.sprite = 0 player.speed = 1 player.moving = false player.timer = 1 function movex() player.moving = true player.sprite += 1 if player.sprite &gt; 2 then player.sprite = 0 end end function movey() player.moving = true player.sprite += 1 if player.sprite &gt; 18 then player.sprite = 16 end end function _update() player.moving = false if btn(0) then player.x -= player.speed movex() elseif btn(1) then player.x += player.speed movex() elseif btn(2) then player.y -= player.speed movey() elseif btn(3) then player.y += player.speed movey() end if not player.moving then player.sprite = 16 end if not player.moving then player.timer = player.timer+1 end if player.timer &gt;=30 then player.sprite = 3 end if player.timer &gt;=60 then player.sprite = 16 player.timer = 0 end if player.moving then player.timer = 0 end end function _draw() map(0,0,0,0,16,8) map(0,0,0,64,16,8) spr (player.sprite, player.x, player.y) end </pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> https://www.lexaloffle.com/bbs/?tid=30000 https://www.lexaloffle.com/bbs/?tid=30000 Wed, 27 Sep 2017 20:38:54 UTC Maps and Borders <p>Okay. So, I am brand spankin' new to coding. I am not quite sure what the proper lingo is. </p> <p>I am attempting to create a sandbox game, but I have no idea how to make it so that when players reach the edge of the playable screen, they can then continue on into a new screen. &quot;Space Delivery!&quot; and &quot;Carmina's World&quot; accomplishes this.</p> <p>Please let me know if I am not articulating this properly. Any help is appreciated.</p> https://www.lexaloffle.com/bbs/?tid=29999 https://www.lexaloffle.com/bbs/?tid=29999 Wed, 27 Sep 2017 20:38:52 UTC Constant Animation Loop <p>How does one make a player constantly animated?</p> <p>Context: I am attempting to make a sandbox game about a honeybee. I need the honeybee's wings to always be in motion.</p> https://www.lexaloffle.com/bbs/?tid=29899 https://www.lexaloffle.com/bbs/?tid=29899 Wed, 06 Sep 2017 14:34:47 UTC