Inkcat78 [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=61235 Help with DEL() please <h2>Hello! I was wondering if anybody can help me figure out why my code wont delete an object. This is my first time using del so I'm sorry if it is really obvious.</h2> <h3>trigger:</h3> <p>function update_slash_p1()</p> <pre><code>for s in all(slash_p1) do s.dx+=1 if s.dx&gt;8 then kill_slash_p1() end end</code></pre> <h3>code:</h3> <p>function kill_slash_p1()</p> <p>del(slash_p1,<br /> dx,<br /> frame,<br /> flip,<br /> damage<br /> )</p> <p>end</p> <p>I also tried:</p> <p>del(slash_p1,{<br /> dx,<br /> frame,<br /> flip,<br /> damage<br /> })<br /> end</p> <h2>Thank you!</h2> https://www.lexaloffle.com/bbs/?tid=52845 https://www.lexaloffle.com/bbs/?tid=52845 Tue, 23 May 2023 17:18:01 UTC help with add <p>function _init()<br /> f={}<br /> end</p> <p>function _update()<br /> add(f,{y=1})<br /> end</p> <p>function _draw()<br /> cls()<br /> map()<br /> print(f.y,58,58,8)<br /> end</p> <p>The print displays that that f.y is nil, could somebody please help?</p> https://www.lexaloffle.com/bbs/?tid=46860 https://www.lexaloffle.com/bbs/?tid=46860 Sun, 06 Mar 2022 01:52:52 UTC Question about time() <p>Is there a way to detect when time() changes? I&rsquo;m trying to make a movement system where when a button is pressed a sprite moves for a certain amount of time.</p> https://www.lexaloffle.com/bbs/?tid=45925 https://www.lexaloffle.com/bbs/?tid=45925 Fri, 31 Dec 2021 16:03:33 UTC