Log In  

Cart [#mb_textflow-2#] | Code | 2019-09-18 | License: CC4-BY-NC-SA | Embed
8

This is a heavily commented cart that shows one way of doing flowing dialog text with coroutines. If you have any questions on how it works, feel free to ask. Again, this is one way of doing it. :)

P#67842 2019-09-18 05:44 ( Edited 2019-09-18 06:44)

Thanks for the dialog text program -- may incorporate into future games!

P#67879 2019-09-19 00:54
:: dw817

No problem. POST MOVED.

What we could use now is YIELD() just operating at any time without requiring the use of a variable:

function go()
  ?"1"
  yield()
  ?"2"
  yield()
  ?"3"
  yield()
end

repeat
  if btnp(5)) reset(go)
  if (btnp(4)) go()
  flip()
until forever

As for the dialog, may use, I wanted to merge my POEM and SNOW together with a flowing dialog text in a future cart.

Your code may be implement. Will see. :)

P#67883 2019-09-19 02:00 ( Edited 2019-09-19 02:01)

[Please log in to post a comment]

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-11-14 19:11 | 0.014s | 2097k | Q:29