Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

Are you trying to change the string using mid? The code below will tell you what character in at the location found by mid.

do

        a$="12345"

       if mid(a$,2,1)="2"

       end

       else

    Print("Not Now")

    endif    

    if GetRawKeyPressed(32)

        end

    endif    

    sync()

loop


Otherwise you might want to look at ReplaceString.

mid is not enough, i dont wanna only compare the string, i want to change it. "ReplaceString" looks better, I will try it! Thank you for your help!

You're welcome.