Posted: 16th Jan 2015 19:36
Thanks JimHawkins. It didn't occur to me to do it like that.

It does however seem like a bit of a hassle to make all the variables you might need to use into a type and I don't think it works with variables within arrays and larger types.

The following would not work:
+ Code Snippet
SwapInt( something.a, someting.b )
SwapInt( array[1,2], array[2,1] )
SwapInt( array[1,1].a, array[1,1].b )


It's a start however.
Posted: 16th Jan 2015 21:45
Know almost nothing about it but database support (SQLLite?) would be useful for some work related projects I have in mind...Only so far I could go with text files!

Aah! I see many others requesting it and it's on the list: List
Posted: 17th Jan 2015 0:31
@Ranietz - I just checked and you can certainly do what you want in Pascal. It seems to be a little bit harder in AppGameKit Basic with multi-dimensional arrays.

All good reasons, of course, to use AppGameKit for Pascal, which is wondrously free, and currently at V108!
Posted: 20th Jan 2015 9:31
How about an expression evaluation function so we can take a string "10*5" and calculate the result?

This would be a great help to people who want to add some kind of scripting to their games and I'm sure you already use such functions so it would be reasonably easy to wrap them.
Posted: 20th Jan 2015 10:32
Expression evaluation would be quite difficult to do because the AppGameKit Bytecode doesn't contain variable information (I think !), so you could only do numeric constants. Writing a recursive descent evaluator wouldn't be that difficult anyway, or to make it even easier you could use RPN or abandon operator precedence.
Posted: 20th Jan 2015 10:58
Dare I mention Lua, yet again???????

I'd be happy with RPN - having written several Forth implementations - but I think it might scare some people to see "27 33 +"
Posted: 20th Jan 2015 11:35
'd be happy with RPN - having written several Forth implementations - but I think it might scare some people to see "27 33 +"


+1 to Lua. I have no idea what RPN is, so I can only assume that means effectively "Inputs 27 and 33, add them".
Posted: 20th Jan 2015 12:18
Reverse Polish Notation. Forth is the main language.

RPN is evaluated strictly left to right. There is a data stack, which is in an array (or more strictly, a last-in first-out queue).

Numbers are pushed onto the stack in order in which they are encountered, so if we have tokens 27 33 the stack looks like this:

- 33 // top stack - known as TOS
- 27

Operators pop things from the stack and do something with them, so + in the example will pop two values, add them, and then push the result onto the stack:

- 60

There are many stack operators which manipulate the stack. We could define a new "word" using the definition introducer :

: SQUARED DUP * ;

We could then have: 2 SQUARED
This would push a 2 onto the stack, push a copy of the TOS value onto the stack, multiply the two values on the stack and push the result onto the stack.

Without going into too much detail, the system consists of a Dictionary (the keywords or defined words, a Code Area, which contains what the words in the dictionary do, a Data Stack (as above) and a Return Stack, which goes back to the point where a new word was executed (think gosub and return).

Finally - if an unknown word is used (such as 23) the interpreter attempts to convert it to a number.

It would be fairly easy to make a simple system for AppGameKit T1. But actually I think for most people it would be better to have the Basic compiler (optionally) built into the run-time system, so that scripts could be parsed, compiled and executed.
Posted: 20th Jan 2015 15:08
I don't think they're going to do lua whatever you do I think its in the FAQ.

Likewise putting the compiler into the runtime probably isn't going to happen either. The VM from what I've seen of it is very very static. It can't (at present) do function indirection for example.
Posted: 20th Jan 2015 15:42
Ironically, FPSCR is highly Lua-based.
Posted: 20th Jan 2015 19:11
@Clonkex

I've only seen one other person in the forum use the same pic as me


ok i got one for Feature Request

a version that lets you program on Android Device

this could be started in "KickStarter" considering
it will take a bit of work to get going

as long as the programing language is exact to the current version

they people can program any ware on the code and even build APK files to test

i know it would be a bit of rethinking to make it happen

i bought High Compatibility 76 Keys Bluetooth 3.0 Keyboard Built-in Lithium-Ion Battery with Touchpad for Cellphone Tablet PC Desktop Laptop

http://www.everbuying.net/product672659.html

as well as "Practical TV Shape Folding Mobile Phone Image Amplifier with Phone Stand" for a bigger display

http://www.everbuying.net/product616732.html

and with buying "30000mAh Dual USB Portable Solar Panel Power Bank for usb devices with LED Light"

http://www.everbuying.net/product523892.html

there would be no need to be stuck working inside or near a power supply
Posted: 22nd Jan 2015 16:23
Video needs ability to set the play position. so you can develop a slider underneath to allow users to skip forward, or start the vid from a particular point.

presently only can play,stop and pause. No good if you want to skip to the last couple of minutes of an hour long video (for example).

Also sort bug with video where they work one minute and not the next (with no code changed).!
Posted: 23rd Jan 2015 0:16
is there any way to do a For-Each loop? If not, please add that to the list!
Posted: 23rd Jan 2015 10:45
Well, there are only two things you can do 'each' of ; arrays and string characters, which can be done with for/next. AGK2 doesn't have any dynamic data structures (apart from variable length arrays and strings....)
Posted: 23rd Jan 2015 11:13
Not sure if I put these before but (in addition to the obvious must-have of Sqlite3 support):-

1. integer CreateZip( filename , password) - password protection for Zip files

2. WriteMemblock( iFileID, iMemblockID ) and ReadMemblock equivalent
Posted: 24th Jan 2015 20:03
bigc90210, you can with arrays do something like:
+ Code Snippet
for i=0 to array.length
    'do something to array[i]
next
Posted: 25th Jan 2015 8:39
Now that Linux support has been achieved in .11, can we hope for Windows Phone support on the horizon? That'd be spectacular.
Posted: 31st Jan 2015 5:16
Video needs ability to set the play position. so you can develop a slider underneath to allow users to skip forward, or start the vid from a particular point.


Video should also be usable as a texture via a sprite or render image. This would allow you to control transparency, z-depth and apply shaders in real-time. It was something alluded to a very long time ago by Paul or Lee. Right now the video features are severely restrictive.
Posted: 3rd Feb 2015 13:17
Ability to control where video is played - e.g. on the main AppGameKit drawing surface, or maybe projected onto a 3D plane - so we can overlay sprites, text and anything else we want on top of a playing video file.

Numerous applications for this in games and multimedia projects.
Posted: 3rd Feb 2015 14:50
I'm not sure if this is requested already, but I mainly develop for PC and would like to see the ability to resize the window by dragging the corners, like most windows do (for tier 1).