Search found 789 matches

by Rado1
Sat Jan 09, 2016 10:20 am
Forum: General discussion
Topic: How to shuffle an array?
Replies: 2
Views: 4683

Re: How to shuffle an array?

A simple algorithm (O(n)): int[20] array; int i, j, k; // init array for(i = 0; i < 20; ++i) array[i] = i; // shuffle (Knuth shuffle) for(i = 0; i < 20; ++i){ j = rnd() * i; k = array[i]; array[i] = array[j]; array[j] = k; } // show result for(i = 0; i < 20; ++i) trace(intToStr(i) + ": " +...
by Rado1
Fri Jan 08, 2016 9:46 pm
Forum: General discussion
Topic: Question about WebOpen
Replies: 0
Views: 41455

Question about WebOpen

Are not properties WebOpen.ParamArray and WebOpen.ResultArray deprecated? If so, they can be removed...

If not, what types and dimensions of arrays are supported?
by Rado1
Fri Jan 08, 2016 9:44 pm
Forum: General discussion
Topic: Tiles & Sprites
Replies: 45
Views: 71916

Re: Tiles & Sprites

Nice!
by Rado1
Fri Jan 08, 2016 7:17 pm
Forum: General discussion
Topic: Question about Variable.*Value properties
Replies: 4
Views: 5818

Re: Question about Variable.*Value properties

I just would be glad if the implementation is consistent, in any way. BTW even if float Value can be edited, it cannot be saved and it is still in disable look, I think that's a mistake of implementation. BTW there is another hidden property Timer.CurrentRelativeTime which should be shown in propert...
by Rado1
Fri Jan 08, 2016 5:30 pm
Forum: General discussion
Topic: Question about Variable.*Value properties
Replies: 4
Views: 5818

Question about Variable.*Value properties

Does anybody of you use Variable component's Value, IntValue, ModelValue or ByteValue properties? Do you think it is useful to still have them? If so, then StringValue is missing.

I could see some usage in debugging the previewed application, but in practice, I rather use trace() function instead.
by Rado1
Thu Jan 07, 2016 1:30 pm
Forum: Extensions
Topic: Skeletal animation for ZGE
Replies: 25
Views: 47838

Re: Skeletal animation for ZGE

Your example looks nice. If possible, I would be curious to see your shader code when finished. BTW having meaningful questions is the best way of learning for you and also for me, do not worry.
by Rado1
Wed Jan 06, 2016 2:43 pm
Forum: Your projects
Topic: Karamball
Replies: 30
Views: 60761

Re: Karamball

Free + paid Android version up to 20 downloads even if rating was 5. I did no marketing efforts, except of putting references to Google Play from Game Jolt and itch.io where I gave version for Windows.
by Rado1
Wed Jan 06, 2016 10:57 am
Forum: Your projects
Topic: Karamball
Replies: 30
Views: 60761

Re: Karamball

After one year of exposing Android version of Karamball on Google Play I did the following changes:

* Karamball 1.2 Android app became FREE !!! on Google Play.
* Karamball Free 1.2 Android app was removed from Google Play.
by Rado1
Wed Jan 06, 2016 9:58 am
Forum: Extensions
Topic: Skeletal animation for ZGE
Replies: 25
Views: 47838

Re: Skeletal animation for ZGE

but it seems the Cal3D model only accepts lighting from one source. That's not problem of Cal3D, the problem is that your shader uses just one light (it access only gl_LightSource[0]). It should iterate through all lights on scene. BTW you do not need to use external library to add more lights. Sim...
by Rado1
Wed Jan 06, 2016 9:43 am
Forum: General discussion
Topic: Tiles & Sprites
Replies: 45
Views: 71916

Re: Tiles & Sprites

Hi Kjell, This was / is planned, and basically worked ... but not when used as custom editor for some reason ( reading the pixel data fails ). I'll look into it again. Yes please. This will be very useful feature. + There is a way to import the data already, but it's far-from-ideal / quite-cumbersom...
by Rado1
Tue Jan 05, 2016 8:53 pm
Forum: General discussion
Topic: Tiles & Sprites
Replies: 45
Views: 71916

Re: Tiles & Sprites

Several ideas: 1. In the current implementation, the buttons on SpriteSheet.SpriteData property do not work - "Clear" has no effect and "Import" generates error. It would be nice to fix them. 2. Because the current sprite sheet editor is quite cumbersome (actually, it's not bad b...
by Rado1
Tue Jan 05, 2016 7:32 am
Forum: Extensions
Topic: Skeletal animation for ZGE
Replies: 25
Views: 47838

Re: Skeletal animation for ZGE

It looks nice.
by Rado1
Mon Jan 04, 2016 10:21 pm
Forum: Extensions
Topic: Skeletal animation for ZGE
Replies: 25
Views: 47838

Re: Skeletal animation for ZGE

Hi, I observed that the crash happens at calling zsk_GetSubmeshUserMaterialId() function in initialization of model. The problem is that submeshes do not define their materials. In blondie_mesh.xmf MATERIAL="-1" which is not probably correct value. I fixed the project and set camera and li...
by Rado1
Sun Jan 03, 2016 6:58 pm
Forum: Extensions
Topic: Skeletal animation for ZGE
Replies: 25
Views: 47838

Re: Skeletal animation for ZGE

Hi Barefists,

just send me your assets and the ZGE project file, I can have a look at it and possibly also debug.

Rado1.
by Rado1
Sat Jan 02, 2016 2:13 pm
Forum: General discussion
Topic: Question about RemoveModel.Model
Replies: 6
Views: 6864

Re: Question about RemoveModel.Model

Kjell wrote:Your KeyPress component has a RepeatDelay of 0.
Stupid me, I did not notice. Thanks.