|
Post by manu128k on Aug 28, 2018 21:51:16 GMT
Hi guys, my script is pretty much like this: let L=1 repeat 1 colour 6 let line=L let column =2 message 1 add 1 to L endrepeat I want to display one message and then again the same message one line under the first one Very simple, huh? I get a screen with a kindof corrupted message, what I'm doing wrong? A noob mistake of mine or AGD bug?
|
|
|
Post by lukebord1 on Aug 30, 2018 6:40:10 GMT
First, if you set "L=1" in the same event where you tell the variable to change, the line will be always 1... maybe you're setting "L=1" elsewhere (e.g. in game init event), and you're just making an example, ok.
The above code seems ok, however, the "corrupted messages" is a well known issue (especially in previous AGD versions), which could happen when you change text multiple times, or while deleting and inserting new messages.
I'd recommend to restart from a clean session (or a previous save) trying to avoid corrections or cancellations in the messages menu.
|
|
|
Post by manu128k on Aug 30, 2018 23:01:52 GMT
Hi Luke, thanks for your reply. That script is located in the game initialisation event, so there is no problem with the value of L.
I've started from scratch in a vanilla 4.7 AGD to discard previous mistakes or glitches, using the built-in messages, so for me there is no explanation for what is happening.
|
|
|
Post by lukebord1 on Aug 31, 2018 7:29:09 GMT
...just a question: why you should "REPEAT 1"? If you need to print the message once, there's no reason to nest the code into a REPEAT cycle.
|
|
|
Post by manu128k on Aug 31, 2018 21:20:22 GMT
The script in this post is just a proof of concept to reproduce the error. Something like a simple first step. What I would want it to do would be more complex
|
|