[r210] Problems with "blending a cube" in game

Bugs will be moved here once resolved.

Post » Wed Aug 05, 2015 10:01 am

Problem Description
Working on a coloring platformer, but there's some problems with events

Attach a Capx
https://www.dropbox.com/s/fgyl9r6rbd818 ... .capx?dl=0

Description of Capx
A stripped demo of the platformer

Steps to Reproduce Bug
  • Add some events
    Image
  • Preview the game
  • "Blending" the cube
    Image

Observed Result
When a yellow droplet drips the red cube, it turns yellow instead of orange. But when vice-versa, it works.

Expected Result
Both situations should blend the cube to orange

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)
  • Internet Explorer: (YES)

Operating System and Service Pack
Windows 8.1 x64

Construct 2 Version ID
r210 beta
Twitter | Facebook | Instagram

If you play Puyo Puyo games, you can meet me at the Puyo Puyo English Community Discord: https://discord.gg/0k41S8ARwvY2iTIQ
B
103
S
24
G
11
Posts: 696
Reputation: 12,896

Post » Wed Aug 05, 2015 11:50 am

You should be using Else. Look at event 33 - it sets the frame to 3. But the events keep going, so event 34 runs, and 35 runs - oops - the frame is 3 now, because you just set it to 3, so it runs and now the frame is 4. You need to use Else for this kind of checking to stop any of the other sub events from running and using the new value.
ImageImageImage
B
71
S
21
G
231
Posts: 3,694
Reputation: 129,364

Post » Thu Aug 06, 2015 2:53 am

It's working, thanks!
Twitter | Facebook | Instagram

If you play Puyo Puyo games, you can meet me at the Puyo Puyo English Community Discord: https://discord.gg/0k41S8ARwvY2iTIQ
B
103
S
24
G
11
Posts: 696
Reputation: 12,896

Post » Thu Aug 06, 2015 3:53 pm

Closing as not a bug.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,772


Return to Closed bugs

Who is online

Users browsing this forum: Baidu [Spider] and 3 guests