Global xbox controller object problem..

For questions about using Classic.

Post » Sat Jul 04, 2015 3:37 am

Hi all, does anyone know if there is an issue with the xbox controller object set to GLOBAL across layouts? it seems to crash my preview.

saved to test caps to see if anyone has the same issue...

A BUTTON makes a sprite appear, START jumps back and forth between layouts.

2 xbox controller object instances over 2 layouts = OK!
https://copy.com/OUtWqa8hP6U1HFEQ

controller instance set to global = NOT OK!
https://copy.com/3OYh6nuLc37c3KI9
B
9
S
4
G
5
Posts: 160
Reputation: 2,374

Post » Sat Jul 04, 2015 6:30 am

heh ....

Euhm ...

You just need to add the controller object to your project once ... and you can reference it in any layout.

and you dont have to add more controller objects, you reference them in the one object with an index number.

And .. I've never set it to global ... not even sure whats the purpose for that on that object.


EDIT: whoops this is contruct classic, sorry, I don't know if this applies there too.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,562

Post » Sat Jul 04, 2015 9:01 am

I had it crash initially after pressing START (loading and pressing A was fine), but after changing the second layout to switch on the BACK button instead of START it no longer crashes. Is that the same for you?

If so, then it's mainly because the check for START being pressed is happening so fast it probably triggers on both sheets and that causes a freeze in game logic.

Changing layouts quickly/pressing both still causes the crash, so I would put a timer variable in that gets reset every time the layout changes and prevents transitioning between layouts for at least a second or two after the new layout has begun running.

Hope that helps! :)
"Construct 4 lets YOU make advanced games! (but not play them)" Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
116
S
40
G
17
Posts: 2,197
Reputation: 19,433

Post » Sat Jul 04, 2015 9:55 am

intriguing! Ok I will have a look very soon and see what happens... thanks as always!
B
9
S
4
G
5
Posts: 160
Reputation: 2,374


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests