Search found 1186 matches

by Bugala
Wed May 15, 2024 8:23 am
Forum: Newbie questions
Topic: Tables and functions
Replies: 7
Views: 212

Re: Tables and functions

One more notice about this. In getter Function I was simply using Return(Items) And like in the AddItem situation: Local Items = Cart.GetItems() InsertItem(Items, Item) This works and might be exactly how you want to do it even. Point being, that although "Items" in AddItem part is Local, ...
by Bugala
Tue May 14, 2024 7:44 pm
Forum: Newbie questions
Topic: Tables and functions
Replies: 7
Views: 212

Re: Tables and functions

Well, instead of thinking where to put that Items part, you could look the whole problem from a different angle. Since this is in newbie question section, I assume you might be wanting even an answer like this: Now, lets say you have Enemy = {X=1, Y=2} Now usually you would use it simply: Enemy.x = ...
by Bugala
Sun May 12, 2024 8:41 pm
Forum: Newbie questions
Topic: Tables and functions
Replies: 7
Views: 212

Re: Tables and functions

Now I have a bit better moment to answer. what you are doing is that you are checking every item that "CART" holds, this includes all those functions as example. What you should do is check through "Cart.Items": ForEach(cart.items, DebugPrint) This way It should display only the ...
by Bugala
Fri May 10, 2024 12:56 pm
Forum: Newbie questions
Topic: Tables and functions
Replies: 7
Views: 212

Re: Tables and functions

You should do the Foreach for self.items basically.
by Bugala
Mon Apr 29, 2024 4:15 pm
Forum: General programming
Topic: "Could not allocate audio channel for this sound!" - how to fix?
Replies: 11
Views: 6978

Re: "Could not allocate audio channel for this sound!" - how to fix?

@Andreas

When using HaveFreeChannel() will it always return the first available free channel or might it return something else, like last channel instead?
by Bugala
Thu Apr 25, 2024 8:03 am
Forum: Wishlist
Topic: Gradient Coloring to text
Replies: 3
Views: 547

Re: Gradient Coloring to text

Thanks, going to check, didn't even come to my mind to check that.
by Bugala
Wed Apr 24, 2024 12:09 pm
Forum: Wishlist
Topic: Gradient Coloring to text
Replies: 3
Views: 547

Gradient Coloring to text

Not sure if this is even available already, but if not, then to wishlist. For both TextOut and Text Objects, an option to do Gradient coloring (I think that is what it is called) The idea is that the top of the text could be dark green, while the bottom of the text is Light Green, and then it change...
by Bugala
Wed Apr 24, 2024 9:00 am
Forum: Newbie questions
Topic: What ways to display a message to a user when starting a program?
Replies: 5
Views: 466

Re: What ways to display a message to a user when starting a program?

Got myself right cable to display second monitor on TV on my new computer too. I still am not able to repeat the black screen problem that others have reported to me. However, took now some testing by moving explorer to the second monitor, and then tested by starting Audacity and Blender through exp...
by Bugala
Mon Mar 25, 2024 3:19 pm
Forum: General programming
Topic: Any way to play sample till the end when quitting program?
Replies: 3
Views: 382

Re: Any way to play sample till the end when quitting program?

yeah, was thinking this myself too, that basically when program ends, it really should end. Only thing that came to my mind was if there had been some possibility to play sample through system audio or something like that. Like windows itself has some notification sounds and systems, so maybe someth...
by Bugala
Mon Mar 25, 2024 12:40 pm
Forum: General programming
Topic: Any way to play sample till the end when quitting program?
Replies: 3
Views: 382

Any way to play sample till the end when quitting program?

Today came to my mind an idea that when Quitting from game, it could play a sample that would continue to play till the end of that sample even after the program has quit. As in, having a shutdown sample. Is this doable in Hollywood currently without actually keeping the program open? As in, after u...