Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Need help? Sticky

A topic by TheGameCreators created May 18, 2022 Views: 149 Replies: 10
Viewing posts 1 to 8
Host

Are you new to BASIC or AppGameKit and you're stuck on how to do something. Post here for some advice.

Submitted

i have a string and want change the char in position x. with "mid" i can only use for if-statement. when i make mid(str,x,1)="2" then comes error, "= unexpected token"

Host (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.

Submitted

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!

Host

You're welcome.

Submitted

I have finished my game. But I have only the exe-file. when i try to export to android AGK crashs!!!

Submitted

i have it. i have set the location not in the source-folder, instead i set it to my desktop, exporting succeded!

Host

@Bardon, I'm glad you've solved it.

Submitted

hello, i have an error vk create buffer.....where i can set the memory in agk?

Host

Can you show the error please, you shouldn't need to set memory.

Submitted

Error: vkCreateBuffer error:-2