Search Results
Post [desc] Author Forum Replies Views Posted
    Thread: Check sprite collision with other sprite
Post: RE: Check sprite collision with other sprite

Hi, Sprite collisions -with both tiles and other sprites- is a gameplay mechanics topic. As Tilengine is a graphics engine, not a full game engine, it won't directly solve collisions. However it wi...
megamarc Support 3 8,977 05-05-2021, 07:14 AM
    Thread: code blocks and compile
Post: RE: code blocks and compile

Hi! This is a runtime error caused by mismatching 32 and 64 binaries. You have built a 32-bit executable and placed it alongside 64-bit dlls, or vice-versa. Make sure you're match the same architectu...
megamarc Support 2 5,891 03-04-2022, 05:14 PM
    Thread: colision y destrucion de objetos
Post: RE: colision y destrucion de objetos

Hola, El concepto de creación y destrucción de objetos pertenece a la lógica del juego, no a Tilengine, que no tiene soporte explícito para ello ya que sólo gestiona gráficos. Para tilengine sólo h...
megamarc Soporte 13 37,654 11-07-2018, 04:57 AM
    Thread: colision y destrucion de objetos
Post: RE: colision y destrucion de objetos

En Tilengine no se crean ni destruyen sprites. Cuando inicias el motor con Engine.create(), uno de los parámetros que le pasas es el nº de sprites que vas a tener. En ese momento se crea una lista inm...
megamarc Soporte 13 37,654 11-08-2018, 04:16 AM
    Thread: colision y destrucion de objetos
Post: RE: colision y destrucion de objetos

Buenas! He examinado tu ejemplo, te adjunto un par de cambios: No es correcto crear el objeto de fondos dentro del de jugador, como si fuera subordinado. Son dos entidades independientes y deben ...
megamarc Soporte 13 37,654 11-09-2018, 07:10 PM
    Thread: colision y destrucion de objetos
Post: RE: colision y destrucion de objetos

No es que no se pueda, claro que se puede, pero no es formalmente correcto: el fondo no es propiedad del jugador, sino que tiene acceso él al igual que el resto de objetos. El tema de la detección ...
megamarc Soporte 13 37,654 11-09-2018, 09:15 PM
    Thread: colision y destrucion de objetos
Post: RE: colision y destrucion de objetos

Hola, El sistema de colisiones es algo que depende mucho del tipo de juego que estés haciendo, por eso no se puede crear algo genérico. Cuántos puntos de testeo tiene tu objeto con el fondo y qué d...
megamarc Soporte 13 37,654 11-11-2018, 03:16 AM
    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 37,654 02-28-2019, 07:36 AM
    Thread: Collision with Tilemap Layer
Post: RE: Collision with Tilemap Layer

Hi! Of course, you have to use the function TLN_GetLayerTile() (http://www.tilengine.org/doc/group__layer.html#ga1d3932cdfcb024db23a94e4e33f2246e) on the layer you want to test. You pass layer index,...
megamarc Support 10 29,493 04-11-2020, 04:37 PM
    Thread: Collision with Tilemap Layer
Post: RE: Collision with Tilemap Layer

A boolean "Collidable" would be impractical, as there are many types of collisions: is the block solid walkable floor? One-way platform? A ladder?  Sliding slope? Dangerous spikes? All of them are col...
megamarc Support 10 29,493 04-13-2020, 02:59 PM
    Thread: Collision with Tilemap Layer
Post: RE: Collision with Tilemap Layer

Hi, You're experiencing two unrelated problems: 1. Seems that TLN_GetTileInfo() is not correctly protected against passing negative values as world coordinates, that's why sometimes "segfaults" wh...
megamarc Support 10 29,493 04-14-2020, 03:36 AM
    Thread: Collision with Tilemap Layer
Post: RE: Collision with Tilemap Layer

That's because you're just checking collision in a single point in your character, that is not representative of its shape. To properly manage it, you should work with an array of collision points aro...
megamarc Support 10 29,493 04-14-2020, 02:45 PM
    Thread: Collision with Tilemap Layer
Post: RE: Collision with Tilemap Layer

Some general advices: when the intention of a function is to return a true/false value, define it as bool and return an explicit expression that evaluates to bool. test_direction() and detect_collis...
megamarc Support 10 29,493 04-17-2020, 05:08 AM
    Thread: Collision with tiles position and sprite not aligning correctly
Post: RE: Collision with tiles position and sprite not a...

Hi, I've tried to build the project to see how it runs, but I think mi install of mingw32 is quite old as it isn't compatible with the supplied dlls. I'll try to update it and chek it. I'm not fami...
megamarc Support 7 11,428 09-04-2023, 05:01 AM
    Thread: Collision with tiles position and sprite not aligning correctly
Post: RE: Collision with tiles position and sprite not a...

Hi, I've updated my install of mingw to mingw64 to last one available (13.2.0) but I when building I get many instances of this error: Code: -- src/Include/tweeny.h: In member function 'tween...
megamarc Support 7 11,428 09-04-2023, 03:44 PM
    Thread: Collision with tiles position and sprite not aligning correctly
Post: RE: Collision with tiles position and sprite not a...

Hi, I've finally managed to build and debug the sample using VS2022 Community. Now I can check what it does and where's the problem. Regards,
megamarc Support 7 11,428 09-22-2023, 12:24 AM
    Thread: Colour Cycling
Post: RE: Colour Cycling

Great tutorial! I know about Grafx2, I even have it installed, but I find the UI a bit daunting. Of course it's not the tool's fault, just that I'm not used to this kind of user interface as I used to...
megamarc Support 15 47,951 05-01-2019, 09:31 PM
    Thread: Colour Cycling
Post: RE: Colour Cycling

Yes, you can have color cycling in sprites too The Sprite object has the get_palette() method that returns its current palette. One you have it, you can setup a color cycle animation in the same wa...
megamarc Support 15 47,951 04-19-2018, 03:51 AM
    Thread: Colour Cycling
Post: RE: Colour Cycling

Blending is supported on both backgrounds and sprites, so you can use set_blend_mode in sprites too, with the same features. PerspexSphinx Wrote: (04-28-2018, 06:08 AM) -- Hi, I got a sprite Colour ...
megamarc Support 15 47,951 04-28-2018, 11:37 PM
    Thread: Colour Cycling
Post: RE: Colour Cycling

Don't worry about posting questions, I appreciate your interest! Short cause: you found a bug in the python binding. I'll fix it on GitHub, meanwhile you can fix it yourself to proceed with your t...
megamarc Support 15 47,951 04-30-2018, 04:06 PM