How do I change the fade times for my sprites

Get help using Construct 2

Post » Sat Mar 05, 2016 11:02 pm

What i am doing is having a sprite when created fade in and out in one of the circles.. Everything works great I just need to make the fade in and fade out a random number of seconds when they are created... How do I do this ???

Image
B
9
S
3
Posts: 56
Reputation: 801

Post » Sat Mar 05, 2016 11:04 pm

I dont want to fade in and out at the same speed every time the sprite is created I want to change it up to make the game harder....
B
9
S
3
Posts: 56
Reputation: 801

Post » Sun Mar 06, 2016 2:19 am

If I am not mistaken you need to to this for every object

system > for each objCircle and then whatever fade time you want random e.g. (0,5)

or if the circles are not already on the screen, but individually created in an event
just put another action underneath the create object - like set fade in time to random (0,5) and another action to Fade start fade (here the Fade active on start has to be disabled)

  • System > On start of layout | system > load game from slot "brain"
  • System > On load failed | system > scroll to obj_Forum
B
17
S
8
G
5
Posts: 340
Reputation: 4,707

Post » Sun Mar 06, 2016 2:38 am

My Circles never change. Just the sprites when they are created inside the circles. The sprites have Fade Behavior but there is no way that i can find to change the fade time when they are created ?
B
9
S
3
Posts: 56
Reputation: 801

Post » Sun Mar 06, 2016 3:05 am

only thing I can do is start or stop the fade I cant change the speed :(
B
9
S
3
Posts: 56
Reputation: 801

Post » Sun Mar 06, 2016 11:10 am

try a new project

create one sprite with fade behaviour > name it objSprite
set the fade properties to active on start < no
fade out time > 8

now in the event sheet
system > on start of layout | objSprite > destroy
system > every 2 seconds | system > create obj sprite [layer = 0, x= random (WindowWidth), Y= random (WindowHeight)] //the order of the actions is important
add action > objSprite > set fade in time = random (0,5)
add action > objSprite > Fade: start fade

  • System > On start of layout | system > load game from slot "brain"
  • System > On load failed | system > scroll to obj_Forum
B
17
S
8
G
5
Posts: 340
Reputation: 4,707


Return to How do I....?

Who is online

Users browsing this forum: 25games, jatin1726, kiki4construct, Username05 and 28 guests