Notification Box Scrolling Across Screen

Get help using Construct 2

Post » Sat Aug 03, 2013 12:21 am



Trying to create a notification box that scrolls from the left side of the screen to the middle, where it stops. The user then has to touch the screen to make the box move to the right.

To test the .capx, please select the 'Gameplay' layout and then run the program.

BoardGame.capx
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,234

Post » Sat Aug 03, 2013 2:30 am

what is your issue?
also, make a simple capx first, please.
B
18
S
5
G
4
Posts: 568
Reputation: 5,079

Post » Sat Aug 03, 2013 2:37 am

Perhaps I should have been more clear. Basically the notification box appears, but doesn't move.

The .capx is complex, but the issue where it occurs is on its own separate layer that is only shown when the notification box is meant to appear, so the relevant code is pretty much just the code in the screenshot above.
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,234

Post » Sat Aug 03, 2013 3:05 am

The problem is your movement code is inside the function. The function is only called once, then returns, so the movement code will never be called again. Move it outside of the function, and add something else to trigger whether the code runs or not.
ImageImageImage
B
71
S
22
G
248
Posts: 3,761
Reputation: 138,073

Post » Sat Aug 03, 2013 3:30 am

I moved it out of the function, but it's still not moving. I'm not sure what's up.
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,234

Post » Sat Aug 03, 2013 3:37 am

BoardGame_BHT.capx
I call the function in event 2, just to test.
ImageImageImage
B
71
S
22
G
248
Posts: 3,761
Reputation: 138,073

Post » Sat Aug 03, 2013 3:49 am

Ah nevermind, I just realized I needed to use 'trigger once' after moving the events out of the function.
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,234


Return to How do I....?

Who is online

Users browsing this forum: kainrazial and 22 guests