Search found 12 matches
- Sun Apr 17, 2016 2:43 pm
- Forum: Support and Development
- Topic: sick.lua - what is the right path to file?
- Replies: 1
- Views: 2241
sick.lua - what is the right path to file?
Hi everybody, I would like to use sick for saving highscores. But no matter what I do, nothing is written in the dedicated highscore file. What am I doing wrong? My setup: Within my game folder I included the "highscore.txt" file. This is the code: local highscore = require('sick') highsco...
- Tue Apr 12, 2016 8:38 pm
- Forum: Libraries and Tools
- Topic: Simple Tiled Implementation - STI v1.2.3.0
- Replies: 915
- Views: 824895
Re: Simple Tiled Implementation - STI v0.14.1.12
Just want to say thanks to Karai17 and s-ol for their help!
The function was the solution.
Best
zugende
The
Code: Select all
SpriteBatch:set
Best
zugende
- Sun Apr 10, 2016 1:02 pm
- Forum: Libraries and Tools
- Topic: Simple Tiled Implementation - STI v1.2.3.0
- Replies: 915
- Views: 824895
Re: Simple Tiled Implementation - STI v0.14.1.12
Looks like you mostly have it. I think the batch id should be in the tile instance, so that will tell you exactly which part of the batch you need to update. Still not working, but I dont give up. :D ok, this is what I got so far: 1) mouse click 2) tile-x and tile-y is calculated -> then I look up ...
- Sun Apr 10, 2016 9:56 am
- Forum: Libraries and Tools
- Topic: Simple Tiled Implementation - STI v1.2.3.0
- Replies: 915
- Views: 824895
Re: Simple Tiled Implementation - STI v0.14.1.12
You need to update the spirit batch. Instead of changing the gid, you want to update the whole tile using the tiles table, then update the sprite batch Thx for the fast response. But I guess I need some further help with that. :P I can imagine that I need to use map.tileInstances[i][id].batch and s...
- Sat Apr 09, 2016 10:02 pm
- Forum: Libraries and Tools
- Topic: Simple Tiled Implementation - STI v1.2.3.0
- Replies: 915
- Views: 824895
Re: Simple Tiled Implementation - STI v0.14.1.12
Hi everybody, I want to update a tile but can't get it to work. What am I missing? When mouse clicked, this code is fired(line 77): map.layers[1].data[tiley][tilex].gid = 9 Now, when I click again I can see that the gid changed correctly to 9 but the image is not updated ..why? tile_test.love Thanks...
- Sun Mar 20, 2016 6:31 pm
- Forum: Support and Development
- Topic: Rotate grouped images
- Replies: 6
- Views: 2416
Re: Rotate grouped images
I would still urge you to learn the transforms API, it is a very essential part of graphics programming and useful for a lot of different things. Lets take the attached love file as example. Eventually I want the rocket to rotate together with the "fire" - would you suggest doing this wit...
- Sun Mar 20, 2016 12:57 pm
- Forum: Support and Development
- Topic: Rotate grouped images
- Replies: 6
- Views: 2416
Re: Rotate grouped images
Ahh nice! Thank you both. Canvas is the one I was looking for.
- Sun Mar 20, 2016 10:54 am
- Forum: Support and Development
- Topic: Rotate grouped images
- Replies: 6
- Views: 2416
Rotate grouped images
Hi everyone, does a function exist, which groups some images to one group so that I then can easily rotate all images together with the same origin? At the moment I'm manipulating the offset parameter for each image.. but this is really time consuming. Any idea how to speed up this process? Thanks a...
- Sat Mar 19, 2016 8:00 am
- Forum: Libraries and Tools
- Topic: Simple Tiled Implementation - STI v1.2.3.0
- Replies: 915
- Views: 824895
Re: Simple Tiled Implementation - STI v0.14.1.12
Ahhh, thanks NightKawata and Karai17. I did not thought of that.
Thanks again,
zugende
Thanks again,
zugende
- Fri Mar 18, 2016 11:45 pm
- Forum: Libraries and Tools
- Topic: Simple Tiled Implementation - STI v1.2.3.0
- Replies: 915
- Views: 824895
Re: Simple Tiled Implementation - STI v0.14.1.12
Hi everyone,
not sure If i missed something..but I can't find the sti.lua file. Can someone help me?
Thaaanks a lot!
Best
Basti
not sure If i missed something..but I can't find the sti.lua file. Can someone help me?
Thaaanks a lot!
Best
Basti