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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.