Search found 1898 matches
- Thu May 23, 2024 2:36 pm
- Forum: General discussion
- Topic: Confusion with screen coordinates
- Replies: 5
- Views: 103
Re: Confusion with screen coordinates
Hi Tomi, It's simple Pythagoras theorem :wink: So .. by default the camera is positioned at 0,0,10 and uses a perspective projection with a FOV of 45. When you create a diagram of that situation viewed from the side ( over the x-axis ) it looks something like this: https://i.imgur.com/f0YPyLO.png Yo...
- Thu May 23, 2024 9:41 am
- Forum: General discussion
- Topic: Confusion with screen coordinates
- Replies: 5
- Views: 103
Re: Confusion with screen coordinates
Hi Tomi, so is ZGE basically uses 3D projection, even in the case of a 2d program? No, you don't have to use a 3D projection if you don't want to. Simply add a Camera component to your project and configure it to your needs .. below is the exact same scene viewed using 3 different camera configurati...
- Wed May 22, 2024 2:39 pm
- Forum: Feature requests
- Topic: Use of non-English letters
- Replies: 4
- Views: 101
Re: Use of non-English letters
Hi Tomi, Should I use some kind of "UseMaterial" before the RenderText to get the wished characters, as you used in your example? The built-in font only contains ASCII characters. So you need to provide your own font that has all characters you want to use. Attached is the example i used i...
- Wed May 22, 2024 5:29 am
- Forum: Feature requests
- Topic: Use of non-English letters
- Replies: 4
- Views: 101
Re: Use of non-English letters
Hi Tomi, ZGameEditor stores project files ( .zgeproj ) using ISO-8859-1 encoding. As far as Hungarian is concerned, ISO-8859-1 is missing Ő,ő,Ű,ű. If you can live with typing Õ,õ,Û,û instead, you can simply adjust your font to still render Ő,ő,Ű,ű. https://i.imgur.com/vgJL8ka.png Alternatively you c...
- Tue May 21, 2024 5:22 pm
- Forum: General discussion
- Topic: Confusion with screen coordinates
- Replies: 5
- Views: 103
Re: Confusion with screen coordinates
Hi Tomi, When I moved a 2d bitmap (so, I changed the Position.X and Y of this model) in my first test program with the default settings, the left and right edge of the screen can be found at -5 and 5 values, while top and bottom are at -3 and 3. By default ZGameEditor uses a camera with a perspectiv...
- Tue May 21, 2024 2:18 pm
- Forum: General discussion
- Topic: Menu with character's name
- Replies: 5
- Views: 132
- Mon May 20, 2024 12:25 pm
- Forum: General discussion
- Topic: Menu with character's name
- Replies: 5
- Views: 132
Re: Menu with character's name
Hi guys, Here's a quick loop + key code scanning to type with the keyboard @Ats: You can do this exact thing a little bit easier actually, like this: <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="ZGameEditor application" FileVe...
- Sun May 05, 2024 2:46 pm
- Forum: Your projects
- Topic: SFXR
- Replies: 20
- Views: 17881
Re: SFXR
Hi Ats, I'm just wondering: I'm attaching the Sample to Sound_SFXR before playing them. So far, there haven't been any issues playing multiple sounds simultaneously. So, should I continue using a single Sound object for all Samples, or should I consider creating multiple Sound objects, one for each ...
- Fri May 03, 2024 7:17 pm
- Forum: Your projects
- Topic: SFXR
- Replies: 20
- Views: 17881
Re: SFXR
Hi Ats, Apart FilterCutoff and FilterQ, are there other ZGE filters that can be applied in real time to those generated sounds? Like BaseNoteNr or Osc1Waveform? Are those filters instantaneous when playing the sound? I'm a noob when it comes to synth :lol: If your Sound component uses a Sample it ov...
- Thu May 02, 2024 6:45 pm
- Forum: General discussion
- Topic: Edition of the Sound component
- Replies: 5
- Views: 7346
- Thu May 02, 2024 1:24 pm
- Forum: Your projects
- Topic: SFXR
- Replies: 20
- Views: 17881
Re: SFXR
Hi Ats, Nope, this is still crashing. But buffer.SizeDim1 = S + 4; works fine :lol: Ah .. in that case it's probably a rounding-error caused by the SampleExpression. Try the following: - Add a MySampleIndex ( type = int ) variable - Change the SampleExpression to "this.Sample = buffer[MySampleI...
- Thu May 02, 2024 10:47 am
- Forum: Your projects
- Topic: SFXR
- Replies: 20
- Views: 17881
Re: SFXR
Hi Ats,
The only "crashes" / errors i'm seeing on my end are "array access out of range" errors. You need to make sure your buffer array is large enough to fit the sound you're generating. But perhaps you're getting different errors?
K
The only "crashes" / errors i'm seeing on my end are "array access out of range" errors. You need to make sure your buffer array is large enough to fit the sound you're generating. But perhaps you're getting different errors?
K
- Wed May 01, 2024 5:27 pm
- Forum: Your projects
- Topic: SFXR
- Replies: 20
- Views: 17881
Re: SFXR
Hi Ats, Weirdly enough, KeyPress:KeyPress isn't an issue. You can't use KeyPress as variable type in the scripting language .. while you can use File / Sample / Sound. But now I'm wondering if sfxr could be wrapped to work as an external library (dll and so), just like ZGEBullet, so that we could sy...
- Tue Apr 30, 2024 9:00 am
- Forum: Feature requests
- Topic: Triple mouse-click to select entire line of text
- Replies: 5
- Views: 329
Re: Triple mouse-click to select entire line of text
Hi guys,
It might be easier to see how TSynEdit-2 has implemented triple-click and only add that .. instead of swapping to the entire fork.
K
It might be easier to see how TSynEdit-2 has implemented triple-click and only add that .. instead of swapping to the entire fork.
K
- Mon Apr 29, 2024 9:30 pm
- Forum: Feature requests
- Topic: Triple mouse-click to select entire line of text
- Replies: 5
- Views: 329
Re: Triple mouse-click to select entire line of text
Hi Ats, Is it possible to add a triple-click to select an entire paragraph? The regular TSynEdit control doesn't support this ( which is what ZGameEditor uses ) .. but apparently it was added to TSynEdit-2 in 2020. Article: https://blogs.embarcadero.com/syntax-highlighting-editors-in-delphi-cbuilder...