Skip to content

Default item selection in Carousel Mode? #1825

Answered by avanwinkle
bernarma asked this question in Q&A
Discussion options

You must be logged in to vote

I did something exactly that in my first game, where the player could choose from a variety of missions. If they played but did not complete a mission, the first item in the carousel would always be the last mission they attempted.

https://github.com/avanwinkle/masseffect2/blob/master/modes/missionselect/code/missionselect.py#L90-L95

(That block is the only relevant section, all the rest of that code is for much more complex stuff)

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@bernarma
Comment options

Comment options

You must be logged in to vote
3 replies
@bernarma
Comment options

@bernarma
Comment options

@avanwinkle
Comment options

Answer selected by bernarma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants