Search found 621 matches
- Mon Jun 25, 2018 7:21 pm
- Forum: General discussion
- Topic: Touch happens on release instead of on press (Android)
- Replies: 7
- Views: 10011
Re: Touch happens on release instead of on press (Android)
Oh ok... I've just verified and everything's perfect: <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="ZGameEditor application" FileVersion="2" AndroidPackageName="com.mydomain.touchscreen"> <OnLoaded> <SetAppS...
- Mon Jun 25, 2018 6:49 pm
- Forum: General discussion
- Topic: Touch happens on release instead of on press (Android)
- Replies: 7
- Views: 10011
Re: Touch happens on release instead of on press (Android)
Thanks. I didn't saw that in the scripting reference
So I have another question because it seems to be working differently:
App.MousePosition.X is moving between -1 and 1. But what about touchGetX?
So I have another question because it seems to be working differently:
App.MousePosition.X is moving between -1 and 1. But what about touchGetX?
- Mon Jun 25, 2018 6:01 pm
- Forum: General discussion
- Topic: Touch happens on release instead of on press (Android)
- Replies: 7
- Views: 10011
Touch happens on release instead of on press (Android)
Hi. I'm handling the touch input on Android like a mouse click using the KeyPress componant with { for the left click. On the computer, it works perfectly on press. But on Android, the magic only occurs on touch release. For pushing a button, it's weird but it's not a big problem. But for constant p...
- Sun Jun 24, 2018 9:55 pm
- Forum: General discussion
- Topic: Pausing
- Replies: 9
- Views: 11815
Re: Pausing
Two little notes for my future self when I'll stumble on that problem again: Pausing the game with ModelUpdatesEnabled isn't pausing the Timer componant, so it needs to be stacked after a Condition componant with return GameState.ModelUpdatesEnabled; Pausing the game in preview mode deactivates the ...
- Fri Jun 22, 2018 12:50 am
- Forum: General discussion
- Topic: Pausing
- Replies: 9
- Views: 11815
Re: Pausing
Thanks Kjell, glad to see you are still here :) Pause is working like a charm ! By the way, using: init: Key[1] = Key[0]; Key[0] = 0; pressing key: Key[0] = 1; resolution: if(Key[0] && !Key[1]) is so simple compared to what I did in the game I'm trying to resurect... It's time for some code ...
- Thu Jun 21, 2018 10:49 pm
- Forum: General discussion
- Topic: Pausing
- Replies: 9
- Views: 11815
Re: Pausing
Hi, I'm back in the game after a VERY long time... And I forgot a few things about how ZGE works...
How do you toggle the AppState "ModelUpdatesEnabled" from a ZExpression?
How do you toggle the AppState "ModelUpdatesEnabled" from a ZExpression?
- Sat Jan 09, 2016 10:57 am
- Forum: General discussion
- Topic: How to shuffle an array?
- Replies: 2
- Views: 4670
Re: How to shuffle an array?
Thanks fof giving the name of the method
Thanks to that, I found a cool website with methods for everything in a lot of programming languages: http://rosettacode.org/
Thanks to that, I found a cool website with methods for everything in a lot of programming languages: http://rosettacode.org/
- Sat Jan 09, 2016 10:07 am
- Forum: General discussion
- Topic: How to shuffle an array?
- Replies: 2
- Views: 4670
How to shuffle an array?
Hi,
I'm trying to shuffle the numbers inside an array. But as there is no splice method, I don't find an efficient way to do that without having to call random a lot of times. How would you do that in ZGE?
Thanks
I'm trying to shuffle the numbers inside an array. But as there is no splice method, I don't find an efficient way to do that without having to call random a lot of times. How would you do that in ZGE?
Thanks
- Mon Nov 16, 2015 12:12 am
- Forum: General discussion
- Topic: Import "voxel" model with texture
- Replies: 2
- Views: 4895
Re: Import "voxel" model with texture
Oh! I was using an online converter to obtain the 3ds file, and I didn't know that it was removing the texture coordinates...
Now it's working. Thanks Kjell
Now it's working. Thanks Kjell
- Sun Nov 15, 2015 6:17 pm
- Forum: General discussion
- Topic: Import "voxel" model with texture
- Replies: 2
- Views: 4895
Import "voxel" model with texture
Hi everyone, It's been a long time...
Currently I'm playing with MagicaVoxel (https://voxel.codeplex.com/) and I was wondering, once you have converted the obj file to 3ds, how do you import it WITH it's texture to ZGE? Thanks for your help!
Currently I'm playing with MagicaVoxel (https://voxel.codeplex.com/) and I was wondering, once you have converted the obj file to 3ds, how do you import it WITH it's texture to ZGE? Thanks for your help!
- Mon Jan 12, 2015 10:49 am
- Forum: General discussion
- Topic: Exporting images from ZGE
- Replies: 17
- Views: 29677
mmm... Even with the KeyPress.RepeatDelay set to 0, it takes almost 3 seconds per frame on your ZGE project to make a capture... I'm using an Asus Transformer T100 ( http://www.engadget.com/products/asus/transformer/book/t100/specs/ ). For the flat shading, you are totally right. I'm working on this...
- Mon Jan 12, 2015 9:22 am
- Forum: General discussion
- Topic: Exporting images from ZGE
- Replies: 17
- Views: 29677
I finally had the time to use your image exporter. But I didn't think that it would take that much time for the processor to make a capture :shock: I've made some rotating ships and stuff: http://www.txori.com/data/images/articles/150112_fighter.gif http://www.txori.com/data/images/articles/150112_i...
- Tue Dec 09, 2014 4:36 pm
- Forum: General discussion
- Topic: Exporting images from ZGE
- Replies: 17
- Views: 29677
Exporting images from ZGE
Hi,
I'd like to make some animated gif from rotating models in ZGE.
Is it possible to export some frames to png or another image format?
Or do I have to use an external recording software?
Thanks!
I'd like to make some animated gif from rotating models in ZGE.
Is it possible to export some frames to png or another image format?
Or do I have to use an external recording software?
Thanks!
- Sun Sep 21, 2014 5:59 pm
- Forum: Your projects
- Topic: OMEGANAUT
- Replies: 96
- Views: 164464
Nice. Does that work with KeyPress too? The F1 help file doesn't provide more than Note: KeyPress can now also be used as a data type in ZExpressions, if you prefer. It would be useful to avoid duplicating the same bit of code for keyboard and gamepad, but I can't do a thing using @KeyPress(Keys:&qu...
- Sun Sep 21, 2014 3:48 pm
- Forum: Your projects
- Topic: OMEGANAUT
- Replies: 96
- Views: 164464