So I'm working on a game similar to tetris, but I don't know any algorithms or methods to make the blocks go down faster when pressing the down key button.

Recommended Answers

when the down button is pressed increase Y speed untill the collision detection detects it is at the bottom/or touching another block.

Jump to Post

All 3 Replies

when the down button is pressed increase Y speed untill the collision detection detects it is at the bottom/or touching another block.

when the down button is pressed increase Y speed untill the collision detection detects it is at the bottom/or touching another block.

How do I make Y speed make the blocks move down faster though? And I'm not too sure on how to instruct the program to detect collision effects on objects.

What code have you got so far because if you dont have collision detection and you dont know how to update the postion of an image then we have some problems if you are trying to make a game.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.