Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - th3highwaym0n

Pages: 1
1
Ask a Question / Re: How to move programmatically generated tiles?
« on: October 30, 2011, 02:06:36 pm »
Interesting discovery! The tile that I created using createTileAt has a null value for its pixels attribute. The tile's parent's pixels attribute is correctly listed as BitmapData, but the tile itself isn't. Is there something I have to enable for the pixels attribute to be correct?

2
Ask a Question / Re: How to move programmatically generated tiles?
« on: October 29, 2011, 09:51:58 am »
I understand what I have to do now in order to get this to work. However, I'm stuck once again! I'm creating the tile (currently on screen just so I know it's working), creating a bunch of MovingTile actors, and then setting the pixels for the MovingTile actors to the pixels of the tile.

But the MovingTile actors don't display the tile's image. Any ideas? Attached is a screenshot of the scene behavior.

3
Ask a Question / Re: How to move programmatically generated tiles?
« on: October 26, 2011, 06:24:14 am »
Sounds much easier to me. My only question proceeding with that solution is how do I make an actor that uses a tileset as its texture?

4
Ask a Question / Re: How to move programmatically generated tiles?
« on: October 25, 2011, 09:05:06 am »
How would I go about doing that then? I can't make the scene itself infinitely large. I mean, I can make it pretty big but eventually the player will get to the end of it. And if I move the player at all, they will eventually hit the end of the scene.

The only way I see this possible is to move the player actor 1 tile width, then remove any tiles located in the first column, slide all the tiles over 1, add tiles in the last column, and then move the player actor back 1 tile width. I'm wondering how that would look though. And if that is what you mean. Thanks for your help with this matter! It's much appreciated.

5
Ask a Question / How to move programmatically generated tiles?
« on: October 25, 2011, 05:40:07 am »
This is my first foray into Stencyl and I'm trying to make an infinite platformer, much like Canabalt. I am able to create and add tiles to the scene as well as keep track of them in a list, but I can't find anything on how exactly I would go about modifying their position.

I looked at the Tile class in the Stencyl API but found little help there. So I'm just wondering if anyone knows the solution to my problem or can point me in the right direction. And if I'm going about this all wrong, that would be most helpful too.

Pages: 1