Page 1 of 1
Standalone card problem
Posted: Sun Nov 23, 2014 9:32 pm
by Peacfulrvr
I finished a rough draft of my program and saved it as a standalone. I have two problems.
1. on the intro screen I move a image around the screen. If the user pushes an arrowkey it freezes the game.
2. When in the game if you lose you are taken to the final slide in the stack and it is the end of the game. But if you push an arrowkey you can switch to other cards in the stack.
Re: Standalone card problem
Posted: Sun Nov 23, 2014 10:09 pm
by dunbarx
Hi.
For the second thing, the arrow keys do navigate if no control is in focus. You can trap the message in the card script if you want to stop that.
For the first, does this happen in the IDE as well, or only in the standalone?
Craig Newman
Re: Standalone card problem
Posted: Sun Nov 23, 2014 11:07 pm
by Klaus
Hi Peacfulrvr,
yep, I've been bitten by this feature before, too
Add this to your "openstack" handler:
Code: Select all
on openstack
set the navigationarrows to false
## other opestack stuff here...
end openstack
This will prevent unwanted navigation between cards and stacks!
Best
Klaus
Re: Standalone card problem
Posted: Sun Nov 23, 2014 11:25 pm
by Peacfulrvr
Thanks Klaus, I think that solved the navigation midgame. I just noticed that this fixed both problems...
Re: Standalone card problem
Posted: Sun Nov 23, 2014 11:29 pm
by Peacfulrvr
1. on the intro screen I move a image around the screen. If the user pushes an arrowkey it freezes the game.
Dunbarx it also happens in the IDE I need to accept the first key pressed and ignore subsequent ones pressed.
Re: Standalone card problem
Posted: Mon Nov 24, 2014 2:18 am
by dunbarx
Hi.
If both problems were solved, how could the screen still be freezing?
Or is it just a separate issue that you want to pass only the first keypress? And if so, any keypress? In any case, this is all doable.
Craig