Search found 4 matches
- Thu Jan 07, 2021 11:49 am
- Forum: General
- Topic: Randomly generating objects
- Replies: 4
- Views: 8653
Randomly generating objects
Hi everyone, I have a little problem. When creating a game, he draws 2 barrels which are to move towards the protagonist over time. However, I would like the barrels to generate randomly with a minimal distance between themselves. The problem is that I can't reference the x variable that is being up...
- Thu Dec 24, 2020 2:41 pm
- Forum: General
- Topic: Obstacles in game
- Replies: 6
- Views: 8817
Re: Obstacles in game
Thank you very much, it will be of great help in the future, but I am currently having trouble drawing random obstacle. I don't know how to write an algorithm that creates a obstacle that goes in my direction and crate new obstacle every few seconds.
- Sun Dec 20, 2020 8:28 pm
- Forum: General
- Topic: Obstacles in game
- Replies: 6
- Views: 8817
Re: Obstacles in game
Yes i made simple paralax system with two img (one for background and another to ground). Now I try to create two types of obstacles (for example, jump barrels and crouch posts).
- Sun Dec 20, 2020 4:37 pm
- Forum: General
- Topic: Obstacles in game
- Replies: 6
- Views: 8817
Obstacles in game
Hi everyone I'm new here and I'm supposed to write a flappy birds game or temple run game. I'm supposed to be responsible for the piece of code that generates obstacles and moves them towards the hero and the background. Is there anyone here who can help me with this task because I don't even know h...