How do I differentiate same objects on a layout

Get help using Construct 2

Post » Thu Jul 21, 2016 12:40 pm

I am working on a typing game where sprite fonts are created from the same object with different animation frames (each frame is a different letter). I want to change the opacity only for certain letters that have been typed, but I can't do it because opacity changes for every letter (because they come from the same object). Is there any solution for this? And sorry for my bad English :D .
[img=https://s31.postimg.org/az5v4nt3f/Capture.png]

[img=https://s31.postimg.org/robwebf2j/Capture_PNG2.png]
B
3
Posts: 1
Reputation: 177

Post » Thu Jul 21, 2016 10:02 pm

I think something this simple should work:

On Layout start
--Animation frame = 1
---Set Opacity to 0.75

Sounds like you don't have an understanding how instances of an object are selected in events—you should read up on that to avoid a lot of troubles.
ImageImageImage
B
43
S
26
G
11
Posts: 517
Reputation: 10,475

Post » Fri Jul 22, 2016 2:28 am

What @badmoodtaylor said... but add condition [For each spritefont (loop)] so it checks each spritefont individually for the expected conditional requirements.

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
84
S
34
G
40
Posts: 3,032
Reputation: 30,499

Post » Fri Jul 22, 2016 3:00 am

SoldjahBoy wrote:What @badmoodtaylor said... but add condition [For each spritefont (loop)] so it checks each spritefont individually for the expected conditional requirements.

~Sol


yes
ImageImageImage
B
43
S
26
G
11
Posts: 517
Reputation: 10,475


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 15 guests