|
-
Jul 25th, 2009, 03:08 PM
#1
Thread Starter
Member
[RESOLVED] need game help
im making this game where you have to protect objects from the enemy trying to capture them. i have a loop where a number is randomized from 1 to the current level the person is on. if that number is 50 then a new enemy is created and sent out to get an object.but my problem is if the level is getting higher and higher then the game will get easier and easier. i want it to get harder and harder. please help
-
Jul 25th, 2009, 03:12 PM
#2
Re: need game help
change it so the enemy is sent out if the number is 1
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Jul 25th, 2009, 03:13 PM
#3
Thread Starter
Member
Re: need game help
it doesnt matter what the number is, it could be any number between 0 and the current level you're on.
-
Jul 25th, 2009, 03:16 PM
#4
Re: need game help
how many levels are there?
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Jul 25th, 2009, 03:17 PM
#5
Thread Starter
Member
Re: need game help
i want it to be unlimited.
-
Jul 25th, 2009, 03:21 PM
#6
Re: need game help
if for example you have 10 levels:
vb Code:
dim randomNumber as new random
dim number as integer = randomNumber.next(0, math.abs(level + 1 - 10))
if number = 0 then
'send out enemy
end if
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Jul 25th, 2009, 03:23 PM
#7
Thread Starter
Member
Re: need game help
is there a way to do it with unlimited levels?
-
Jul 25th, 2009, 03:45 PM
#8
Re: need game help
You can't do unlimited levels. If your going by millisecond then the hardest level you can do is one enemy per millisecond. If you wanted to keep going you could add more than 1 enemy per millisecond but that would be a bit more complicated.
Instead of increasing the range decrease it. That increases the chance of the enemy being sent out.
-
Jul 25th, 2009, 04:49 PM
#9
Thread Starter
Member
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|