|
Search Results
|
| Post |
Author |
Forum |
Replies
[asc]
|
Views |
Posted |
| |
|
Thread: Tilengine on Java
Post: RE: Tilengine on Java
|
System64 |
Support
|
79 |
206,413 |
12-21-2020, 07:55 AM |
| |
|
Thread: Tilengine on Java
Post: RE: Tilengine on Java
| It's not related directly with Java, but I want to avoid hardcoding certain things, especially raster effects
Can I use a scripting language likes LUA for that kind of tasks and keeps the main prog... |
|
System64 |
Support
|
79 |
206,413 |
12-30-2020, 07:31 AM |
| |
|
Thread: Tilengine on Java
Post: RE: Tilengine on Java
| Seems LUA is better with C language, someone recommends to use Groovy, jruby or jython
again, I don't know if I can interact with the game directly for graphics effects
Otherwise I have 2 more ide... |
|
System64 |
Support
|
79 |
206,413 |
12-30-2020, 10:15 PM |
| |
|
Thread: Objects list : How to use it?
Post: Objects list : How to use it?
| I want to put some objects in my world and make them spawn on screen and self-destruct outside the screen
But I don't understand how to use theses list. Can you explain clearely how can I achieve t... |
|
System64 |
Support
|
33 |
88,390 |
12-19-2020, 05:20 AM |
| |
|
Thread: Objects list : How to use it?
Post: RE: Objects list : How to use it?
| So if I understand well, I have to provide to TLN_LoadObjectList a tilemap file and a layer name?
My object Layer is stored with a tilemap layer in Tiled, so I have to provide this tilemap layer wi... |
|
System64 |
Support
|
33 |
88,390 |
12-19-2020, 09:57 PM |
| |
|
Thread: Objects list : How to use it?
Post: RE: Objects list : How to use it?
| The function TLN_Init() asks for a number of sprites, what is it for? |
|
System64 |
Support
|
33 |
88,390 |
12-19-2020, 11:29 PM |
| |
|
Thread: Objects list : How to use it?
Post: RE: Objects list : How to use it?
| And is that related to the objects list? |
|
System64 |
Support
|
33 |
88,390 |
12-20-2020, 12:07 AM |
| |
|
Thread: Objects list : How to use it?
Post: RE: Objects list : How to use it?
| and if I understand well, if an object (an ennemy for exemple) creates another object (a bullet for exemple), this bullet goes in this list? |
|
System64 |
Support
|
33 |
88,390 |
12-20-2020, 02:58 AM |
| |
|
Thread: Objects list : How to use it?
Post: RE: Objects list : How to use it?
| with TLN_AddSpriteToList() and TLN_RemoveSpriteToList()?
TLN_AddSpriteToList() is mentionned in the references but nothing about it |
|
System64 |
Support
|
33 |
88,390 |
12-20-2020, 04:14 AM |
| |
|
Thread: Objects list : How to use it?
Post: RE: Objects list : How to use it?
| TLN_AddTileObjectToList()
isn't it for adding Tiles as objects in the List?
also, seems there is no function to remove objects from the list, so if my ennemy generates a lot of bullets for exemple, i... |
|
System64 |
Support
|
33 |
88,390 |
12-20-2020, 09:25 AM |
| |
|
Thread: Objects list : How to use it?
Post: RE: Objects list : How to use it?
| So I should treat this Tilengine's Object list as a common list? So I can use the language's list management functions? |
|
System64 |
Support
|
33 |
88,390 |
12-21-2020, 04:13 AM |
| |
|
Thread: Objects list : How to use it?
Post: RE: Objects list : How to use it?
| I guess it's the same principle for all programming languages? Now I understand better I think
Creating the list with Tilengine with TLN_LoadObjectList
Creating a list with the language
put e... |
|
System64 |
Support
|
33 |
88,390 |
12-21-2020, 07:53 AM |
| |
|
Thread: Objects list : How to use it?
Post: RE: Objects list : How to use it?
|
Quote:
--
Sometimes you'll need feedback from the actors list to the landmarks list: for example, when a spawn point creates an enemy at a specific place, and the player defeats the enemy, you will h... |
|
System64 |
Support
|
33 |
88,390 |
12-21-2020, 09:15 AM |
| |
|
Thread: Objects list : How to use it?
Post: RE: Objects list : How to use it?
| I don't know how I can put the data in the Tilengine's Object List into the language's list |
|
System64 |
Support
|
33 |
88,390 |
12-24-2020, 06:56 AM |
| |
|
Thread: Objects list : How to use it?
Post: RE: Objects list : How to use it?
| It iterates to the next item automatically? I thought I had to use a for loop to iterate through the list with a for loop by increasing the index variable (the common way to iterate through a list)
... |
|
System64 |
Support
|
33 |
88,390 |
12-24-2020, 09:43 PM |
| |
|
Thread: Objects list : How to use it?
Post: RE: Objects list : How to use it?
| I think I found important things about what I want in the cide
Code:
--
def load_objects(file_name, layer_name, first_gid):
""" loads tiles in object layer from a tmx file.
Returns list of Item... |
|
System64 |
Support
|
33 |
88,390 |
12-20-2020, 10:06 PM |
| |
|
Thread: Objects list : How to use it?
Post: RE: Objects list : How to use it?
| I usually use a
for(int c = 0; c < array.length - 1; c++)
{
// code
}
And if I understand well, my object has to possess the same attributes as the ObjectInfo structure
also, what is ... |
|
System64 |
Support
|
33 |
88,390 |
12-25-2020, 08:59 AM |
| |
|
Thread: Objects list : How to use it?
Post: RE: Objects list : How to use it?
| and if I understand well, I can use the type for object's speed or what the object loots for exemple? |
|
System64 |
Support
|
33 |
88,390 |
12-27-2020, 09:44 PM |
| |
|
Thread: Objects list : How to use it?
Post: RE: Objects list : How to use it?
| ah yeah that's useful!
I may also have an idea to store more data than expected
I can for exemple use a 10-digits numbers
I can split this number to obtain each digit and store them in an array... |
|
System64 |
Support
|
33 |
88,390 |
12-28-2020, 09:13 PM |
| |
|
Thread: Objects list : How to use it?
Post: RE: Objects list : How to use it?
|
megamarc Wrote: (12-28-2020, 10:42 PM)
--
Yes, that's a way to do it. Integers are 32-bit long, so you have up to 32 bits to encode pieces of separate info.
However I think it may be more manageab... |
|
System64 |
Support
|
33 |
88,390 |
12-29-2020, 01:31 AM |