Search found 274 matches

by mahewitt
Sat Sep 07, 2019 7:28 am
Forum: Game Framework
Topic: Custom World Buttons - Conditions
Replies: 5
Views: 11128

Re: Custom World Buttons - Conditions

Hi, Can you try posting a screenshot so I can see the heirarchy of the world buttons. For the below it might be from loop that you need, however you need something to set this context. If the buttons are being created automatically with the CreateWorldButtons component then this should be set. I add...
by mahewitt
Sat Sep 07, 2019 7:07 am
Forum: Game Framework
Topic: Score & Coins & Lives
Replies: 6
Views: 11542

Re: Score & Coins & Lives

Hi ez2ciamaprincess There is nothing that does this currently, although it is only a small component that would be needed: using GameFramework.GameStructure; using UnityEngine; public class AddTakeScore : MonoBehaviour { public int Points; // Hook this up to the Button event public void ButtonOnClic...
by mahewitt
Sat Sep 07, 2019 7:02 am
Forum: Game Framework
Topic: Worlds - Changing Level Menu in Scene
Replies: 8
Views: 11326

Re: Worlds - Changing Level Menu in Scene

That null reference should be fixed. If you copy the following 2 files locally (take a backup first). https://github.com/FlipWebApps/GameFramework/blob/master/Scripts/GameStructure/GameItems/Components/AbstractClasses/CreateGameItemButtons.cs https://github.com/FlipWebApps/GameFramework/blob/master/...
by mahewitt
Sat Aug 31, 2019 5:42 pm
Forum: Game Framework
Topic: Greying Out Locked Worlds - Sprite Swap
Replies: 3
Views: 9439

Re: Greying Out Locked Worlds - Sprite Swap

Try out the ConditionalAction component. Something along the lines of the below should work:
Capture.PNG
Capture.PNG (54.7 KiB) Viewed 9396 times
For the polish you mention, try adding BeautifulTransitions Transitions such as Fade or Wipe to animate the swap.
by mahewitt
Sat Aug 31, 2019 5:37 pm
Forum: Game Framework
Topic: Changing Menu Colors per World and Menu Click Sounds
Replies: 1
Views: 5764

Re: Changing Menu Colors per World and Menu Click Sounds

Hi. No problem with the questions - great to know what people are using, or if there are things that could be useful to add. There are several ways you can do this, and what you have in place sounds like it would work well. With my code, the easiest way would be to use the ConditionalAction componen...
by mahewitt
Sat Aug 31, 2019 5:33 pm
Forum: Game Framework
Topic: How to count stars in a World ...
Replies: 4
Views: 8309

Re: How to count stars in a World ...

The coins shouldn't be added to the player as you go, although there are options in the GameOver window that add level scores to player score (None|Always|On Win). Perhaps this is set? If you can verify this in the chear window - you should be able to see if the player score / coins are updated as y...
by mahewitt
Sat Aug 31, 2019 5:26 pm
Forum: Game Framework
Topic: Worlds - Changing Level Menu in Scene
Replies: 8
Views: 11326

Re: Worlds - Changing Level Menu in Scene

When does that error appear? It is OnDestroy, so I am assuming perhaps it is when you exit the game?
by mahewitt
Tue Aug 27, 2019 7:34 pm
Forum: Game Framework
Topic: Worlds - Changing Level Menu in Scene
Replies: 8
Views: 11326

Re: Worlds - Changing Level Menu in Scene

I made a change as per the last post - I don't have a good test framework for this case yet so it isn't tested, but you could try replacing Scripts/GameStructure/GameItems/Components/AbstractClasses/CreateGameItemButtons.cs with the version from(take a backup first): https://github.com/FlipWebApps/G...
by mahewitt
Tue Aug 27, 2019 7:18 pm
Forum: Game Framework
Topic: Worlds - Changing Level Menu in Scene
Replies: 8
Views: 11326

Re: Worlds - Changing Level Menu in Scene

.. As an alternative I can look at adding an event notificaiton to listen to e.g. World selection changes. Hopefully it won't be too big a job. Would still mean the old buttons get destroyed and new ones created though.