Search found 118 matches

by amyren
Wed Aug 12, 2020 12:14 pm
Forum: Newbie questions
Topic: How to detect if the program already is running?
Replies: 4
Views: 488

Re: How to detect if the program already is running?

Thanks for the reply. Actually I was looking for a solution that will work on windows too. I have a workaround plan in case Hollywood dont have an internal way to detect it. Just let the program create a file at startup, and then delete the file when quitting. Then check if this file exists on every...
by amyren
Wed Aug 12, 2020 12:15 am
Forum: Newbie questions
Topic: How to detect if the program already is running?
Replies: 4
Views: 488

How to detect if the program already is running?

Is there a way to check if the program is running, to avoid the possibility of starting two copies of the program?

I found this discussed in an old feature request, but I couldnt find if it have been adressed yet.
viewtopic.php?p=15375
by amyren
Sat May 23, 2020 1:03 pm
Forum: Newbie questions
Topic: Window position when toggling Borderless
Replies: 1
Views: 466

Window position when toggling Borderless

When running the included Hollywood example named DisplayStyle you can tick and untick the borderless flag. For each cycle the window will move up and left the same number of pixels that the size of the borders. Repeating this and it will eventually move until you no longer can reach that button. If...
by amyren
Mon May 11, 2020 8:46 pm
Forum: Newbie questions
Topic: AmigaOS3: selected audio channel is out of range
Replies: 5
Views: 1246

Re: AmigaOS3: selected audio channel is out of range

Ah. I see now. I should use HaveFreeChannel to check if the channel can be used.
Perhaps it could be mentioned in the docs that those channels are reserved?
by amyren
Sat May 09, 2020 10:37 pm
Forum: Newbie questions
Topic: AmigaOS3: selected audio channel is out of range
Replies: 5
Views: 1246

Re: AmigaOS3: selected audio channel is out of range

That explains the error. But why does getchannels report that there are 8 available channels?
by amyren
Tue May 05, 2020 11:28 am
Forum: Newbie questions
Topic: AmigaOS3: selected audio channel is out of range
Replies: 5
Views: 1246

AmigaOS3: selected audio channel is out of range

I have this game, where my previous version just played its samples without specifying an audio channel. Then I ran into issues with the android version, so I did change this so they all had audio channel specified. like this: PlaySample(2, {Channel = 2}) This worked well for android and windows ver...
by amyren
Thu Apr 23, 2020 12:07 pm
Forum: Newbie questions
Topic: Audio files problem
Replies: 2
Views: 1133

Audio files problem

I have this LCD game that uses 8 different wav files for sound effects. I have compiled it for both amiga, windows and android and it was working normally on all platforms. Now I have got the permission to use some wav files from an italian website, that are more accurate to the original sounds. So ...
by amyren
Fri Apr 17, 2020 7:32 pm
Forum: Newbie questions
Topic: Using \n in strings
Replies: 5
Views: 1423

Re: Using \n in strings

Thanks for the replies. The string I want to read is just a part of a larger text file, so I use Readline(1) to read one line at the time. Readstring works differently and I think combining this with Readline might complicate things. I just do it by using two lines for this in the file, and use Read...
by amyren
Tue Apr 14, 2020 7:59 am
Forum: Newbie questions
Topic: Using \n in strings
Replies: 5
Views: 1423

Re: Using \n in strings

I was thinking the other way, I did not intend to have that backslash-n written out as text. I wanted to know why the string read from the file is treated differently. Like what if I wanted the imported string to come out as two lines? If I save a file named test.tx containing one string: This is li...
by amyren
Mon Apr 13, 2020 11:05 pm
Forum: Newbie questions
Topic: Using \n in strings
Replies: 5
Views: 1423

Using \n in strings

If I make a string like this

Code: Select all

string$ = "Line one\nLine2"
Debugprint(string$)
That will come out as two lines

But if I have the exact same text in a file and read the line into a string, it will debugprint as a single line.

Why is this?