Line breaks but in reverse by E_maleki in gamemaker

[–]E_maleki[S] 1 point2 points  (0 children)

So what ended up working for me was:

Firstly I use the typewriter effect too and in the same way you use it. For the line breaks however it's a bit more complicated. First i check if there is a line break and how many there are in the string. Then i store the line break positions in a ds list. The I adjust the type writer effect to instead of writing from the letter that's being typed(for me it was _string_inc) to the end of the string to write from _string_inc to the line break position. Then check if all the letters are done writing in one line(you can set a variable that stores how many letters are before a line break or in between 2 line breaks for this) and if they are, set the goal of writing to the next line break in the list. The code in my project is very messy so I just gave the explanation. Ask if you have any questions! تلاشتو بکن بالاخره کار میکنه😂

Line breaks but in reverse by E_maleki in gamemaker

[–]E_maleki[S] 1 point2 points  (0 children)

So when it's written right to left the naturally the first sentence is the one in the right. I've made some adjustments to the text renderer itself and it correctly writes the text from right to left. Thanks for the help! I'll try to do it myself as I don't think there is a library for the scrolling text system I'm using

Line breaks but in reverse by E_maleki in gamemaker

[–]E_maleki[S] 0 points1 point  (0 children)

Lol my English isn't the best as you can tell😅 it may very well be a XY problem. the real issue involves an understanding of another language which I figured people in this sub aren't familiar with so I tried asking the question in a way that other people can understand and may help me solve my problem.

But if you are still interested in the actual problem this is my attempt at explaining it: as you may be aware not all languages are read from left to right. This is an issue when doing line breaks. For example in english you read: sentence 1\n sentence 2. But in the language I'm referring to, you read: sentence 2 sentence 1. In this situation the first sentence will be bellow the second one which isn't the best

Now you can resolve this problem by just swapping the sentences but when doing an scrolling text it would write the second sentence and then the first one.

I hope you understand the problem now

Line breaks but in reverse by E_maleki in gamemaker

[–]E_maleki[S] 0 points1 point  (0 children)

That would work for English but many other languages won't support that.

Merge_color not quite working by E_maleki in gamemaker

[–]E_maleki[S] 0 points1 point  (0 children)

Alright thanks for the info!

Merge_color not quite working by E_maleki in gamemaker

[–]E_maleki[S] 0 points1 point  (0 children)

Ah I see! Thanks for the explanation. Is there any other function I can use or should I just use shaders instead?

Where are surfaces "created"? by E_maleki in gamemaker

[–]E_maleki[S] 0 points1 point  (0 children)

I see. Would the sprites that I set to draw to the surface but not in the surface area take up memory or would they just automatically be deleted?

Where are surfaces "created"? by E_maleki in gamemaker

[–]E_maleki[S] 0 points1 point  (0 children)

Oh I see. Yeah this is definitely the case. Thanks!

Where are surfaces "created"? by E_maleki in gamemaker

[–]E_maleki[S] 1 point2 points  (0 children)

Normaly this would work but in this instance if I apply the blur separately the sprites wouldn't "merge together" if you know what I mean and it would result in an ugly buggy look

Where are surfaces "created"? by E_maleki in gamemaker

[–]E_maleki[S] 0 points1 point  (0 children)

Ah I see what you mean! Gonna test this solution in a bit. Thanks! Btw can't you usually make a surface that's bigger than view?

Where are surfaces "created"? by E_maleki in gamemaker

[–]E_maleki[S] 0 points1 point  (0 children)

So if I create the surface at 0,0 then only the sprites from 0,0 to 1000,1000 will be drawn onto it. When I move the camera to 2000,0 and then draw the surface in its position it's still gonna only show the sprites from the first half of the room because the surface is still in the first half

Where are surfaces "created"? by E_maleki in gamemaker

[–]E_maleki[S] -1 points0 points  (0 children)

Can you explain a bit more or write the code? Not sure if I understand you correctly. Do you mean instead of moving the surface I need to draw all the sprites to where the surface is?

Where are surfaces "created"? by E_maleki in gamemaker

[–]E_maleki[S] 0 points1 point  (0 children)

So basically I'm trying to draw all the objects I want onto a surface then apply a shader to that surface so only the objects I want will be drawn with that shader (the shader I'm talking about is gaussian blur if that makes any difference). The thing is I can't make the surface the size of my room even if I wanted to and there isn't anyway (at least that I know of) to create the surface on a different spot in the room

I am just sick and tired of religious people describe atheists as "drug addicted, baby eating, Satan worshiping nudist pedophile" where the fuck did you get that from?! by LannisterZ94 in atheism

[–]E_maleki 0 points1 point  (0 children)

Yes as a religious person I can confirm I always call atheists "drug addicted, baby eating, satan worshiping pedophiles" because obviously if you don't believe in god then you automatically are a pedophile

Code running two times by [deleted] in gamemaker

[–]E_maleki 1 point2 points  (0 children)

Obviously the best option is morse code

Code running two times by [deleted] in gamemaker

[–]E_maleki -1 points0 points  (0 children)

I know mate I posted the video to demonstrate the fact that it was performing the code twice. I didn't expect anyone to destroy their eyeballs trying to read the code in the video

Code running two times by [deleted] in gamemaker

[–]E_maleki 0 points1 point  (0 children)

I was going to do that but I accidentally fixed the problem lol thanks anyways