Help and Questions

I only want them to clip through certain walls.

1 Like

@richard

@unknown_Ink1 hmmmm… we don’t really support that if you only want to allow certain kinds of sprites through.

if you want to allow any sprite through, just don’t mark that tile as a wall

@richard I mean in raycasting.

@richard

1 Like

@unknown_Ink1 the physics engine in raycasting is the same as the non-raycasting engine AFAIK

1 Like

Hello,

I need help with setting up a “win” when all items are collected in the array and the countdown timer has not run out. My code isn’t working.

@Bety I assume you’re referring to this bit of code:

image

That code is only being called once at the beginning of the level, so it will always evaluate to false. You probably want to check it every frame instead, so if you take that code and put it inside of an “on game update” you should be good!

Yes, I placed into an “on game update” but still isn’t working…

OK I fixed that part and it worked. I had to move the set count block too:). Now I’ve added an enemy to my game but when they spawn and are obstructed by walls the inflict more damage and faster than the ones that are free to roam. How can I fix that? I tried the code that is greyed out but that didn’t work.

@Bety inside your overlap event, use the “otherSprite” variable from the event instead of the “myEnemy” variable. you can drag otherSprite out of the top of the event block

myEnemy always points to the last enemy spawned. otherSprite, on the other hand, will point to the enemy that is involved in the overlap event.

@richard I’m coding a game and I am using seeds to create, but I need to be able to draw rectangles in the tilemap, but I noticed I can’t do that for some reason can you think of any way to use the “fill rectangle” block from the “images” Category? Thank you for your time!

@SOCKMONSTER12 do you mean you want fill a rectangle of tiles? Like this?

Press A to fill a rectangle of tiles

1 Like

Thanks!!!

1 Like

hey how do i add custom game overs and wins?

Is there any way to use Raycasting for one level only and normal tilemap/regular gameplay for all of the other levels?

1 Like

TextSprite, Background images, etc

@richard Are you able to make it so that the hearts are over the black

2 Likes

1 Like

@Mr_Duck set the z index of the shadowcasting to be less than 100. It’s the last block in that category.

All of the UI from the info category is drawn at z-index 100, so anything lower than that will show up underneath