How do I make text of the same object have seperate instance

Get help using Construct 2

Post » Fri Jul 25, 2014 8:54 pm

So, my problem is that my hit markers in my game show the amount of damage dealt to the mob, but when one changes text, they all change. Eg.

Image
(All of these numbers should be different and were different when they appeared until the next one appeared)

I've set up the markers by using the following events and actions:
Image
(To make sure I have no text hanging off of the screen whilst still maintaining random marker locations)

Image
(How damage is calculated)

Image
(How I'm creating variety of damage)

So basically, what I'm asking is how to make the hit markers keep the same damage that they were showing earlier, because they change every time I hit the Mob.

Thanks,
Collin
B
4
Posts: 4
Reputation: 204

Post » Fri Jul 25, 2014 9:29 pm

I don't see any event where you set the text..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Jul 25, 2014 9:35 pm

LittleStain wrote:I don't see any event where you set the text..

Oh my gosh when you said that I was like "Wait... Oh yea!" and realized the problem... Thanks
B
4
Posts: 4
Reputation: 204

Post » Fri Jul 25, 2014 10:30 pm

@Developotato

Why are you creating the Damage text off the layout and then immediately setting it to a random location in the same event?

Why not just create it at the random location to begin with and just use one action instead of two?

e.g. Create object Damage on layer 1 at (round(random(1,250)),round(random(80,300)))

And if you follow that with Damage(Text)->Set text to Damage it should only set the text for that text object, but I'm guessing that's what you realized
Find all the Construct 2 games that were on Steam Greenlight here
B
33
S
9
G
7
Posts: 451
Reputation: 6,782


Return to How do I....?

Who is online

Users browsing this forum: suzannegrey and 30 guests