Hi! During making my game I found out this problem: the player collects some coins wile plaiyng the game in the main layout, next this coins must be send to another layout with a store and they must be shown with a text.
So when the player dies text in the another layout is set to the global variable "coins". But this doesn't work! It seems that the shop layout is always played from the beginning, so coins count is always ecuals to 0. Please help!(Maybe there is a trick to save this global variable some how?)
Thanks in advance!