Search found 73 matches

by AZJIO
Fri Jun 09, 2023 9:12 am
Forum: General Discussion
Topic: Apk not build because of non-ascii characters
Replies: 2
Views: 3132

Re: Apk not build because of non-ascii characters

I added a new account to Windows, now it works fine.
viewtopic.php?p=8975#p8975
by AZJIO
Fri Mar 17, 2023 4:52 am
Forum: Coding Questions
Topic: Can I click on the sprite?
Replies: 4
Views: 1136

Re: Can I click on the sprite?

How to test the work of sprites? It takes me a lot of time to compile and install the program on my phone. Do I need to make a PureBasic analogue of the program in order to test the code using the ExamineMouse() functions?
by AZJIO
Tue Mar 14, 2023 5:58 am
Forum: Coding Questions
Topic: Can I click on the sprite?
Replies: 4
Views: 1136

Re: Can I click on the sprite?

I tried using a sprite for the game " fifteen ", but there was a poor touch screen response, so I did using Canvas. The archive contains the source. Changed SetFrameRate(60), it became normal. Instead of lightly touching the screen, I had to hold my finger for a long time to move the sprit...
by AZJIO
Sun Mar 12, 2023 1:10 pm
Forum: Coding Questions
Topic: Can I click on the sprite?
Replies: 4
Views: 1136

Can I click on the sprite?

Can I click on the sprite? Can I get the coordinates of the click relative to the "OpenWindowedScreen" window to see if the sprite was clicked?
by AZJIO
Sun Mar 12, 2023 11:28 am
Forum: Game Programming
Topic: When to call SpriteWidth() and SpriteHeight() ?
Replies: 4
Views: 12348

Re: When to call SpriteWidth() and SpriteHeight() ?

I figured out how to control the sprite EnableExplicit Global s.i Global xx, yy Global mySprite.s = "Sprite.png" Procedure TimerEvents() If EventTimer() = 1 xx + 1 yy + Log(xx) ; Debug xx ; Debug yy If xx = 70 RemoveWindowTimer(0, 1) EndIf EndIf EndProcedure Procedure.i Loaded(Type, Filena...
by AZJIO
Thu Mar 09, 2023 6:30 pm
Forum: Coding Questions
Topic: Equivalent to Fileexist in SB
Replies: 9
Views: 2029

Re: Equivalent to Fileexist in SB

What is the "data" folder for? We recently came to the decision that files can be added to the project at the compilation stage, and then opened. My task is to open several files and close them at once, making sure that the files exist in the "data" folder inside the program. The...
by AZJIO
Thu Mar 09, 2023 4:08 pm
Forum: Coding Questions
Topic: Equivalent to Fileexist in SB
Replies: 9
Views: 2029

Re: Equivalent to Fileexist in SB

The OpenFileRequester() function opens a selection dialog. My task is to make this choice independently by the program. I don't want to force the user to rummage through folders. I could add presets to the program, but then I would have to rewrite the code. I want the settings to be in separate file...
by AZJIO
Thu Mar 09, 2023 1:14 pm
Forum: Coding Questions
Topic: Equivalent to Fileexist in SB
Replies: 9
Views: 2029

Re: Equivalent to Fileexist in SB

I wanted to find files in data folder using Callback. I wanted to find files that I could select from the menu to change the color of window elements. I could put 3 or 10 files in a folder and that there would be an automatic detection of the number of files and, accordingly, the same number of menu...
by AZJIO
Sun Mar 05, 2023 12:42 am
Forum: Coding Questions
Topic: Base font type for all gadgets
Replies: 2
Views: 916

Re: Base font type for all gadgets

Read in the help file what is #PB_Default

Code: Select all

#Font = 0
If LoadFont(#Font, "", 18)
	SetGadgetFont(#PB_Default, FontID(#Font))
EndIf
by AZJIO
Mon Feb 06, 2023 12:16 pm
Forum: Coding Questions
Topic: Canvas is originally white
Replies: 2
Views: 1432

Re: Canvas is originally white

helped.

It remains to eliminate the background flashing white immediately after the logo. It seems that all my global tags contain a black background color.

Code: Select all

html {background-color:#1e2021;}
body {background-color:#1e2021;}