Search found 823 matches

by Bugala
Sun Nov 10, 2019 4:17 pm
Forum: Newbie questions
Topic: Drop some results
Replies: 6
Views: 168

Re: Drop some results

Interesting problem. I actually encounter that same problem every now and then, but so far it havent been speed critical, and I have only had usually 2 max 3 values coming, so I have simply used local a,b to store the values, in which case Hollywood will itself take care of removing the a (and b as ...
by Bugala
Tue Oct 29, 2019 9:45 pm
Forum: Showcase
Topic: New Game: AI
Replies: 3
Views: 261

Re: New Game: AI

Not in the USA, but on the Internet. It used to be Christiandevs.com Annual Speedgame competition: https://web.archive.org/web/20180823170328/http://christiandevs.com/news/?page_id=509 But since times change and unfortunately people moved away from Forums, Christiandevs.com can now be found from way...
by Bugala
Tue Oct 29, 2019 1:57 pm
Forum: Showcase
Topic: New Game: AI
Replies: 3
Views: 261

Re: New Game: AI

Correction, I was actually ranked #3 overall.
by Bugala
Tue Oct 29, 2019 12:37 pm
Forum: Showcase
Topic: New Game: AI
Replies: 3
Views: 261

New Game: AI

I participated in ChrstianDevs Speedgame 2019 this year too. While overall I got ranked #4 I did actually win in two categories: Best Fun Game (shared #1) and Most Original Concept, in which I got the maximum 5 points. AI is a realtime strategy game where you are in control of an AI that sends Robot...
by Bugala
Fri Oct 04, 2019 11:54 am
Forum: General programming
Topic: Is there way to have reference that survives CopyTable()?
Replies: 1
Views: 174

Is there way to have reference that survives CopyTable()?

Had a nasty bug to hunt until I realised where the problem was. here is an example code which illustrates the problem: reftable = { a="1" } tabletwo = { reftable = reftable } tabletwo.reftable.a = 2 DebugPrint(reftable.a) tablethree = CopyTable(tabletwo) tablethree.reftable.a = 3 DebugPrint(reftable...
by Bugala
Fri Oct 04, 2019 8:10 am
Forum: General programming
Topic: Any way to save current eventhandler option?
Replies: 9
Views: 343

Re: Any way to save current eventhandler option?

In case someone needs the possibility to save or even manually start one of the event functions, here is a small test based upon SamuraiCrows suggestion: global t_EventHandlers = {} funccopy = InstallEventHandler InstallEventHandler = Function (table) ForEach(table, Function (ID, item) t_EventHandle...
by Bugala
Thu Oct 03, 2019 8:20 pm
Forum: General programming
Topic: Any way to save current eventhandler option?
Replies: 9
Views: 343

Re: Any way to save current eventhandler option?

hmm.. That is an interesting thought.

I was about to settle for another solution, but now that you mention that, going to give some thought about that one, for that would also solve one problem why i was about to move away from the original idea of saving OnMouseUp temporarily.
by Bugala
Thu Oct 03, 2019 8:47 am
Forum: General programming
Topic: Any way to save current eventhandler option?
Replies: 9
Views: 343

Re: Any way to save current eventhandler option?

I still don't see how I can get it if I don't know it? That lets put it like this, first there is this part of code that I cant access nor know: rando = rnd(2) if rando=0 InstallEventHandler({OnMouseUp=func1}) else InstallEventHandlet({OnMouseUp=func2}) endif supposing I have no access to "rando", I...
by Bugala
Wed Oct 02, 2019 10:58 pm
Forum: General programming
Topic: Create tables
Replies: 8
Views: 306

Re: Create tables

Actually it is possible to affect Global variables names in Hollywood since all variables are stored in table "_G":

Code: Select all

_G["test"] = 1
DebugPrint(test)
However, I do recommend sticking on multiple dimension table rather.