Questions tagged [jstilemap]
47 questions
0
votes
1 answer
Openlayers source tileWMS? TypeError: a.addEventListener is not a function
I want to add features to my tile map, the problem ocurred when I try to use
ol.source.TileWMS
The error message is:
TypeError: a.addEventListener is not a function
However it works with
ol.source.OSM
My code:
var projection = new…

user3238318
- 33
- 2
- 5
0
votes
1 answer
Multiselect tiles in tilemap using cursor
I am working on a game using tilemap and phaser framework. I want select the multiple coordinates on tilemap using phaser (cursor) and then can be able to store into an array. Is this possible using phaser? suggest me some solution for this.

Ashish
- 85
- 1
- 2
- 14
0
votes
1 answer
How to add physicsBody to tiles generated by JSTileMap and change them into one physicsBody
I use JSTileMap to draw a level. I changed it a little bit to add SKPhysicsBody to every tile but sometimes when I apply some impulse to main character and he hits the wall/ground/ceiling he is acting weird. He reflects from surfaces with the way…

mfker
- 21
- 4
0
votes
1 answer
JSTileMap(.tmx) vs Xcode SKTileMapNode
Can someone tell us which one is the better choice and list some pro/cons?
For games -> .tmx?
for other reasons -> SKTileMapNode?

Lirf
- 111
- 12
0
votes
1 answer
How to Incorporate tilemap (from tiled) into phaser
I'm basically trying to create a platform game using Phaser. I created a JSON file in Tiled, and am now trying to add it to the world. I've actually been trying to add it for the past three hours, but have not been successful. I looked at many posts…

Leonard Parisi
- 200
- 1
- 3
- 12
0
votes
1 answer
Use the object position of TileMap in Sprite Kit
in TileMap we can use layers and one of them is the Object layer.
but how is to use them to gave me his position?
with this code I can see the Position of the object, but it does not
have 'a member named position'
let group:TMXObjectGroup =…

Lirf
- 111
- 12
0
votes
1 answer
How Can I Remove a Block in JSTileMap Programmatically
I am currently working with JSTileMap and Swift. I want my player to hit a block and have it break. does any one know how to do this? Also, how can I animate the breaking of this block? Here is my code:
`
var map = JSTileMap()
var player =…

Matthew Anguelo
- 293
- 2
- 12
0
votes
0 answers
Updating tiles after creation JSTileMap
I'm loading a TMX file of size 32x32 and I want to be able to control the size and images of the sprites generated from JSTileMap after creation.
I am able to change their size but I am unable to get what tile image it is to load the appropriate…

Wraithseeker
- 1,884
- 2
- 19
- 34
0
votes
1 answer
SKNodes in SKScene moving in the wrong direction
I am implementing a one dimension movement along the x axis.
The objects are moving but they are in the wrong directions
Code for moving the scene
self.obstacles.position.x -= speed // obstacles = objects
self.map.position.x -= speed // map is the…

Wraithseeker
- 1,884
- 2
- 19
- 34
0
votes
2 answers
JS TileMap iOS 8 and swift, incomprehensible archive?
I've bridged JS TileMap for my spritekit game. I've put a tmx file in my project and I'm trying to init a JSTileMap object
let map = JSTileMap(fileNamed: "level 1-1.tmx")
i get this error
2014-11-15 17:43:03.428 MyGame[5726:1901295] * Terminating…

hamobi
- 7,940
- 4
- 35
- 64
0
votes
2 answers
Forever Scroll Ground in SpriteKit
I’m building a game which have forever scrolling ground.
Ground have some holes,and game over when player fall into a hole.
I can scrolling background.
But I can't scrolling "Ground" which have PhysicsBody (and player can stand).
I tried 2…

mmmmmadoka
- 3
- 4
0
votes
1 answer
TileMap in Sprite kit tile size issue
I am loading a TMX tile map into sprite kit using JSTileMap and the issue I am having is that if I use a tileSet.png the tiles appear too big when displayed. If I use a tileSet@2x.png the tiles appear the correct size but my tmx map does not show…

TazmanNZL
- 372
- 3
- 16
0
votes
0 answers
JSTileMap tileGidAtCoord not responding with all GIDs?
I am trying to find other child nodes within the same GID, essentially find my neighbor nodes. However, in my 25x25 map I only retrieve 4 GIDs for some reason, 6, 7, 19, and 20. My understanding is that there should be 625 GIDs, one for each tile,…

user3869653
- 51
- 2
0
votes
2 answers
SpriteKit and Tiles - working with tiles that are not squares
I've been using JSTileMap to process TMX tile maps in my game, and so far, naturally - i used only square tiles (example in the image attached).
However, i wanted to use ramp-style tiles (also example in the image), which are triangles, and so far -…

Zephyer
- 333
- 6
- 16
0
votes
1 answer
JSTileMap generating warnings in ios7 SpriteKit template
I am copying JSTileMap and LFCGzipUtility into the project and when I run the application it generates several warnings for both files.
However, when I run the provided sample from github, I don't see any of those warnings.
I would like to know why…

user2421700
- 149
- 8