Scrolling Problem
by Ray Gebhardt · in Torque Game Builder · 03/01/2005 (7:41 pm) · 4 replies
I am having a problem making a tilemap follow my player, in a platformer style game i am making. Basically i just mounted the camara to my character, so that when he moves, the camera follows him. This worked fine at first, but when I made a bigger map, the right and bottoms sides of the map got clipped off. I experimented a bit, and noticed that if I "panned" the tile map, I could see more of it (but still the same amount of it at a time). I don't see a function that could let the tilemap pan around the player. Is there any other way I could be doing this?
#2
03/02/2005 (6:56 am)
Well i guess its my bad on this one. I never did a setSize, so I am assuming thats why my tile-map is getting clipped (i had wrapping disabled). Since I am at work, I couldn't test to see if that was my problem. I looked in the C++ code though, and sure enough, it looks like its getting clipped because I did a setTileSize, but never called setSize. I will let you know if it works when I get home. Thanks a lot for all the help, and for making such a cool 2D engine. I love how clean the C++ code is :).
#4
03/02/2005 (2:51 pm)
I tried out the setSize on my tile-layer and it worked great. Thanks once again Melv.
Associate Melv May
I might be off-base here; perhaps you could describe your problem in a little more detail?
Maybe a screenshot of the problem if possible?
- Melv