Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Types as commands other than identifiers

Author
Message
AGK Programming and Codes
10
Years of Service
User Offline
Joined: 23rd Feb 2014
Location:
Posted: 23rd Feb 2014 19:37
Can command types/global be used to assign commands other than the typical 3 (integer, string, floats)?

examples

aButton as LoadImage
bButton as AddVirtualButton
Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 23rd Feb 2014 23:08
You can do this:

MyVariable as MyType

JimHawkins
15
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 23rd Feb 2014 23:40
I'm afraid you need a more sophisticated compiler to assign actions to variables. AppGameKit Basic is not an Object Orientated system.

-- Jim - When is there going to be a release?
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 24th Feb 2014 03:50
You would call those data types, not commands. You can use a UDT like this:



Quote: "I'm afraid you need a more sophisticated compiler to assign actions to variables"

You can assign functions to constants.


Login to post a reply

Server time is: 2024-11-25 02:24:08
Your offset time is: 2024-11-25 02:24:08