harry
Abandoned Uranium Working
Posts: 13
|
Post by harry on Apr 5, 2021 18:49:09 GMT
Hi There, Is it possible to show a block for 3 seconds and then disappear and then show again in a loop ? I want to jump to the other side that way in a platformer.
Thanks
|
|
|
Post by oss003 on Apr 6, 2021 13:01:22 GMT
Yes, that's possible by using a variable incrementing every frame, there are 25 frames/sec. If a certain nr is reached, check if you are on the right screen and if so, remove the block with AT xpos,ypos: PUTBLOCK 0 at the right location. Then at another value of that variable, check if you are on the right screen and if so, display the block with AT xpos,ypos: PUTBLOCK x and reset the variable. The only problem is that when the block is plotted on a sprite, the block will be corrupted.
|
|