Art work and "chances"

Get help using Construct 2

Post » Wed Nov 09, 2011 7:25 pm

I know its off topic but i need help.Whats the best program to draw the background for my side scrolling game?Can I make this game in C2?
http://www.youtube.com/watch?v=owQg9CRJgN0&feature=player_embedded

And another thing,theres a way to have chances on my game?

Example 1:Player kills monster1,monster1 have 50% of droping gold and 50% of droping nothing.

Example 2:Player opens a chest.He has 50% of getting a sword and 50% of getting nothing.

Another thing.How do i put music for each map i want?

Example:When player enter map forest wait 30 seconds and play music 1.

And random musics?How do i do it?

sorry for a lot of questions lol
B
3
G
1
Posts: 4
Reputation: 533

Post » Wed Nov 09, 2011 8:09 pm

Chances are easy. Use the random() function.
Make instance variable gold_chance.
So when monster dies set instance variable gold_chance to floor(random(2)). This will give you a number of either 1 or 0.
if gold_chance = 1 then drop gold
if gold_chance = 0 then drop no gold.

Hope I helped!
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Wed Nov 09, 2011 8:51 pm

There is no best program to draw, it is mostly a matter of tastes.
To this (often asked) question the answers often given are :
Gimp, paint.net, gale graphics (all free software more or less complex).
If you have mean or want to be hype you can always check photoshop too. (but it will cost you a kidney).

For the random sounds/music, a search on the forum would have lead you to this topic.Kyatric2011-11-09 20:51:37
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Thu Nov 10, 2011 2:25 pm

Uhh ok thanks...
But this "gold chance" only work if the drop % is the same for all items right?How I make something like this:

Chest item drop rate:

gold:90%
sword:50%
potion:10%

And player have chances to drop 2 or more items at the same time.He can get gold and sword at the same time,for example.
B
3
G
1
Posts: 4
Reputation: 533

Post » Fri Nov 11, 2011 2:25 am

Regarding the random treasure, does this help?

RandomTreasure
Don't see the fnords and they won't eat you!
B
75
S
16
G
12
Posts: 322
Reputation: 11,608


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests