Need a good trigger for this
VolontaArts
Member Posts: 510
hey everyone. thanks to GS members ive progressed a lot in my game i think. and special thanks to kevincross who solved a problem for me.
But yea everythings running smoothly and the way i want it. just this trigger i have that i dont think is going to work lol. here is a video
the trigger is when the red block collides with the floor/or other block....spawn another block. but then this occurs
so if anyone can think of another way to trigger my spawn block rule it would be awesome.
things ive tried that didnt work (when block.velocity=0 spawn block) ive also tried a timer but it wouldnt work because this game depends on the players speed. so the player could take it slow or fast.
thanks for your time everyone
But yea everythings running smoothly and the way i want it. just this trigger i have that i dont think is going to work lol. here is a video
the trigger is when the red block collides with the floor/or other block....spawn another block. but then this occurs
so if anyone can think of another way to trigger my spawn block rule it would be awesome.
things ive tried that didnt work (when block.velocity=0 spawn block) ive also tried a timer but it wouldnt work because this game depends on the players speed. so the player could take it slow or fast.
thanks for your time everyone
Comments
If you want to stop them from spawning when the box is full you can use a rule that only spawns when y < screen height.
Lump Apps and My Assets
This might be something easily controlled if you have a table with the number of columns and rows for your gems, and store the position of each gem in the table, like a grid. Think of the table like a connect 4 game/rack. Before you spawn a new gem you could check the top row in your table (row 1) and make sure there's no gem in any of those columns.
I think a table should be easier to check if any of the same gems are next to each other and combine or destroy them depending on your final game idea.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
@fryingbaconstudios velocity did not work because what you dont see offscreen is a actor sitting on top spawning these red cubes. and i believe the second they are spawned they are at 0 because they all just start spawning on top of each other as soon as the game starts...but you gave me a very interesting answer ) thank you all...