0

I am making a jump and run game- i want my sprites to collect items that are worth points. I want these items to be randomly generated on my tile map.
Does anyone know how i can do this? I am using Visual C++ with SDL

4
Contributors
7
Replies
8
Views
7 Years
Discussion Span
Last Post by Aranarth
0

It's really impossible to say without knowing the details of the level editor.

0

What are you trying to do? Copy a code and get more code from someone else and say
you did it? If you're not going to a programmer, then its ok, I guess. But if you
decide to become a programmer, then stop with this nonsense and start learning.

0

im not wanting to be a programmer, i am taking a course and one of the papers "is not a programming course" but its more about learning the ins and outs of games, and game play. So we haven't been taught any programming, but are expected to make games using C++. If i had the time and the teaching resource i would love to do this properly but for now this is the best i can do.

0

Look up srand and rand to generate random numbers.
If you have ten different item types, generate a number between 0 and 9 and create the item matching that number.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.