Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Gani & Other Enhancement (https://forums.graalonline.com/forums/showthread.php?t=58712)

Velox Cruentus 04-25-2005 04:51 PM

Gani & Other Enhancement
 
Attach Sprite in the Ganishop
Script Editor in the Ganishop

Dynamic Variables (such as: SPRITE: 30 + PARAM1)

-- Other stuff...

Graal Version 4 should have GS2 enabled on client
Multi-dimensional Array reconition by code (this.mode[0][1] persay)
Multi-layered Levels -- When is that coming out?

Kaimetsu 04-25-2005 07:25 PM

Quote:

Originally Posted by Velox Cruentus
Graal Version 4 should have GS2 enabled on client

Isn't that basically the whole point of V4? I'm looking forward to the new offline editor :)

Quote:

Multi-dimensional Array reconition by code (this.mode[0][1] persay)
Don't we have this already?
(Also 'persay' is not a word)

Velox Cruentus 04-25-2005 09:05 PM

No -- size() doesn't work adequately for multidimensional arrays (adequatly), I do believe.

It doesn't matter as much, but it may prove useful eventually.

Kaimetsu 04-25-2005 09:26 PM

Quote:

Originally Posted by Velox Cruentus
No -- size() doesn't work adequately for multidimensional arrays

How are you using it?

Velox Cruentus 04-25-2005 09:31 PM

Not quite sure -- I had that problem some... Perhaps a month ago? I don't know. It only returned the first array dimension.

Kaimetsu 04-25-2005 09:39 PM

Quote:

Originally Posted by Velox Cruentus
Not quite sure -- I had that problem some... Perhaps a month ago? I don't know. It only returned the first array dimension.

In Graal, a multidimensional array is essentially just an array of arrays. If you try to apply size() to it then you'll just get the length of that first array. If you want to get the total number of elements, and you're sure that every component array is the same width, you can just do: array.size() * array[0].size().

Personally, I'd just keep track of those things with variables.

Rick 04-25-2005 11:27 PM

Quote:

Originally Posted by Velox Cruentus
Graal Version 4 should have GS2 enabled on client

It does.

Unless you mean offline.

Velox Cruentus 04-25-2005 11:33 PM

changeimgmode doesn't seem to have any effect at all. O,o; Is it outdated?

Kaimetsu 04-26-2005 12:55 AM

Quote:

Originally Posted by Velox Cruentus
changeimgmode doesn't seem to have any effect at all

Again: How are you using it?

Velox Cruentus 04-26-2005 02:59 AM

changeimgmode 300,1;

But I was using a polygon -- Could that be the cause?

Admins 04-26-2005 03:07 PM

For polygons the different image modes don't really make make sense, you can add colors or blackness depending on the color and alpha values (works in v3.1 and v4).

You can use new scripting for gani scripts with v3.1 and v4, the scripts are compiled on serverside and the compiled gani script is sent to the client then (can add something to remove the gani script before sending the plain .gani file to the client may be so people cannot steal the script).

It is planned that there will be an online editor in a few months, also the new gani editor will be scripted (you can already modify ganis by script). Need to add some way to zoom ganis/players for that.


All times are GMT +2. The time now is 06:32 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.