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.

Topics - henkass

Pages: 1
Ask a Question / Boolean depending on collision with sensors
« on: January 06, 2016, 11:33:08 am »
So I have this game where you change the collision and look of tiles by the press of a button. The tiles you see (most of them at least) on the screen is actually all actors that changes state depening on 1 global boolean. There are 2 kinds of blocks, type 0 and type 1 (cool name eh?) and if the boolean is false type 1 blocks will be tinted (by image and not code, since it is another animation in the block) and be a sensor instead of a solid tile block etc.
The problem i have is that I have a boolean that is true while the player is hitting a sensor of a tile, and it kind of works but there are some major flaws that I need some help with. As you can see the code makes [Inside Tile]=True while the character is hitting a sensor, and I tried to make it go away once you didn't hit a sensor, even when you don't hit the ground, which doesn't work. The character needs to be able to jump through a tile actor then the boolean [Inside Tile] needs to be false so that you can activate the block beneath you. This works fine when you're standing on the ground, I uploaded the flash file so that you can test it. The controls are left/right or A/D to walk and X/P to jump and then space to switch the blocks. Thanks in advance and sorry for making this so long :)

Resolved Questions / Bitmap Fonts [SOLVED]
« on: January 05, 2016, 03:46:36 am »
Hey there! I tried to make a bitmap font using I made it a png with all the letters and numbers and then i added the image in stencyl to make a font. Then I added all the letters to be at right place and fixed the spacing, space width and line height. All the letters show up to the right but when I try out the text in-game, it doesn't work. Anything that I might've missed or completely forgetting or am I doing it all wrong? The letters are between 1-5 pixels wide and 5 pixels in height, with a 1 pixel spacing and a 2 pixel spacw width
Oh and I'm only using the white letters now and I'm gonna make another font later where I can use the black ones instead.

Ask a Question / Changing tileset
« on: December 22, 2015, 05:21:26 am »
Hello! I want to be able to change a tileset, or change the collisions of a tileset during gameplay. I don't really know how to do that. My problem is that I need a tileset to be at like 50% opacity and have no collisions whatsoever, and then I want, at a press of a button, to be able to change that tileset to regain the collision again. How would I be able to do that? There is no way I'll be replacing every single block with the tile API, there is just way too many blocks to do that. Help would be appreciated! :)
All the game mechanics and code so far is hand made by me to save space and to keep everything under control.

Pages: 1