Search Results
Post Author [desc] Forum Replies Views Posted
    Thread: rotacion y color
Post: RE: rotacion y color

Hola! Para cambiar de color un sprite cambias su paleta con el método Sprite.set_palette(). (http://www.tilengine.org/doc_python/tilengine.html#tilengine.Sprite.set_palette) https://github.com/meg...
megamarc Soporte 2 9,227 02-28-2019, 07:22 AM
    Thread: Into Space, a game I have been working on
Post: RE: Into Space, a game I have been working on

Thanks for sharing your work! I understand your approach: you write a game engine  in top of Tilengine in C++, and script your engine from LUA, right? This model would fit very well with the idea of i...
megamarc Presentations 4 15,356 11-29-2019, 08:42 PM
    Thread: Interest on retro and future game projects
Post: RE: Interest on retro and future game projects

Overall seems right. I assume that your load_sheet() function loads the spriteset correctly. But we know, when something doesn't work, the cause can be subtle and from unexpected source. Please sha...
megamarc Presentations 9 27,734 04-04-2020, 03:58 PM
    Thread: Tilengine on Java
Post: RE: Tilengine on Java

Hi! I think I know what happens. In original 32-bit binding and library, returned pointers by the Tilengine native library are handled as jint (32-bit). However, 64-bit builds return 64-bit pointe...
megamarc Support 79 188,601 12-11-2020, 03:28 AM
    Thread: Browser version of Tilengine
Post: RE: Browser version of Tilengine

Hi! In case you're interested, I've pushed online the html5 development branch. This is were I do all tests and changes, it's not for public release yet, but it's working. Once it's completed, my i...
megamarc Support 14 25,051 01-14-2023, 04:54 PM
    Thread: colision y destrucion de objetos
Post: RE: colision y destrucion de objetos

Hola! Como me falta el contexto de lo que rodea a los ejemplos no sé por qué no tienes el comportamiento esperado, a simple vista parece estar bien. Lo que sí es importante es que para que check_co...
megamarc Soporte 13 38,465 02-28-2019, 07:36 AM
    Thread: moverse hacia la posicion de un objeto
Post: RE: moverse hacia la posicion de un objeto

Veo que a pesar de definir DisparoEnemigo.getAngle() y DisparoEnemigo.advance(), no las ejecutas en ningún momento, ni en init() ni en update(), es como si no estuvieran... no será eso lo que te falta...
megamarc Soporte 8 21,995 04-04-2020, 04:09 PM
    Thread: Falconet - Made with Tilengine
Post: RE: Falconet - Made with Tilengine

Hi Daniel! How's your Falconet project progressing? It looks promising and fun to play. Keep the good work,
megamarc Presentations 23 56,056 02-27-2021, 04:25 AM
    Thread: Tilengine vs shaders
Post: RE: Tilengine vs shaders

Hi Domarius! Long time no see, congratulations for learning new tech with shaders! There's no absolute "best tool" to do something, multiple factors matter. So any framework you choose that sati...
megamarc Game development topics 6 16,438 07-20-2021, 04:04 AM
    Thread: Blending mode for this effect
Post: RE: Blending mode for this effect

Hi guys, I've done a quick prototype using the light effect in tilengine with BLEND_ADD mode. Here I use a shameless TimeSpinner screenshot rip-off for background, where I overlay a sprite with the h...
megamarc Support 7 21,767 09-08-2018, 08:27 AM
    Thread: Colour Cycling
Post: RE: Colour Cycling

Thanks for the link! I already watched that video some time ago, it's full of clever ideas for graphic artists. All the graphics used in tilengine "color cycle" project repository (https://github.com/...
megamarc Support 15 48,804 02-28-2019, 07:43 AM
    Thread: Tilengine on Java
Post: RE: Tilengine on Java

The solution should be to convert jint to jlong, but only those that are being used to hold pointers. You can't do "replace all" because jint are used in many places for legitimate 32-bit integers. So...
megamarc Support 79 188,601 12-11-2020, 07:12 AM
    Thread: Browser version of Tilengine
Post: RE: Browser version of Tilengine

Hi! Glad to know you have it working :-) As you can see, the single main difference is that the main loop doesn't exist isnide main() function anymore, but is a delegate function set up by the n...
megamarc Support 14 25,051 01-15-2023, 04:09 AM
    Thread: Feature request, input keys other than arrows
Post: RE: Feature request, input keys other than arrows

TLN_DefineInputKey() is the way to assign the predefined functions to the keys you want
megamarc Support 3 11,422 06-05-2018, 03:54 AM
    Thread: moverse hacia la posicion de un objeto
Post: RE: moverse hacia la posicion de un objeto

Ya lo tienes funcionando, te comento los pequeños cambios: En __init()__, velocidad y ángulo son locales y sólo se usan para calcular self.vx y self.vy (velocidad horizontal y vertical): Code: ...
megamarc Soporte 8 21,995 04-05-2020, 04:05 AM
    Thread: Tilengine on Java
Post: RE: Tilengine on Java

You can use -m32 command line switch on C compilers that support both archtectures (tcc does)
megamarc Support 79 188,601 12-11-2020, 07:51 AM
    Thread: Browser version of Tilengine
Post: RE: Browser version of Tilengine

Hi! This is the idea :-) I'd like to put some samples online so the user can interact with them. I have to create different html templates, one for each sample, to explain the purpose of the sample...
megamarc Support 14 25,051 01-16-2023, 03:59 AM
    Thread: Interest on retro and future game projects
Post: RE: Interest on retro and future game projects

Solved, You restart the animation each frame the character is moving, that's why you don't see animation at all. Instead you must only enable/disable the animation on state transition -when the cha...
megamarc Presentations 9 27,734 04-05-2020, 04:44 AM
    Thread: Tilengine vs shaders
Post: RE: Tilengine vs shaders

I see you really understand how to handle pixels properly, glad to know! But having seen the same mistakes you talk about in released games, I had to mention it. I've done a bit of research about K...
megamarc Game development topics 6 16,438 07-26-2021, 04:56 PM
    Thread: [Suggestion] Windowing
Post: RE: [Suggestion] Windowing

Hi! Thanks for the suggestion and related documentation, this is quite interesting :-) Tilengine implements a feature that, albeit not as complex as SNES windowing feature, is quite similar and ...
megamarc Support 8 14,952 01-19-2023, 04:16 AM