You still can add these objects into another family (one object can be a member of multiple families). But of course, you will not be able to access behavior properties if they are defined in different family.
Maybe you can use "On created" event for each family to set some properties.
Develop games in your browser. Powerful, performant & highly capable.
One way to do this is to add all such objects into a family. Then, after you created an object, add a sub-event "System Pick last created Family". In this sub-event you can change properties of the newly created instance, for example "Family set angle to 90"
If you need to change behaviors or instance variables, you will need to define them on the family.
SpriteFont is an image. It will always look exactly the same on all devices. While Text object may be rendered differently, depending on the browser, installed fonts etc. There are lots of other differences - SpriteFont can be scaled smoothly, you can control the spacing for each individual character etc. And of course, since it's an image, you can add any effects to characters, outline, shadow, or even replace characters with pictures.
For example, you can display a message "You collected 10 #", where instead of # symbol there will be a picture of a golden coin.
klabundee is right, in your example it doesn't matter when you set the boolean variable, you can set it in the main event.
But in situations when you need to run an action after previous sub-events are finished, you have to do it like this:
Or something like this:
On every tick For each Coin ordered by Coin.Y Coin set x to lerp(self.x, Player.x, dt*10/(loopindex+1))
Physics behavior is definitely not a good choice here.
I'm making gifs with GifCam tool - it's free and easy to use.
blog.bahraniapps.com/gifcam
You can't just copy/paste events here, we are not able to read them.
You need to make a screenshot and post it as an image. Or upload your project file to a file sharing service and post the download link.
I'm guessing you didn't add delays between dialogue phrases. Try this:
Set text to "it is a beautiful day outside" Wait 1 Set text to "on days like these, poachers like you..." Wait 1.5 Set text to "should be burning in hell"
For a more advanced dialogue system, check out these links:
construct.net/en/courses/displaying-dialogue-games-36
dropbox.com/s/d4396pwak0oh7q6/ZeldaDialogueSystem.capx
Where is that "else"? I can't make sense of your code..
If only one combination of checkboxes can be correct, all you need to do is this:
Submit is clicked .... is checked .... is checked (the winning combination) .... is checked Add 1 to Correct Else Add 1 to Wrong
Note, I recommend changing Submit to a button, this way you will not have to use "Trigger once" (which can cause different problems in this code).
My player still only moves in front of the tree and when he doesn’t he collides with it as it’s a solid.
Wait, your trees are solid?? Then how the player is supposed to get behind them? Does my example work if you remove Solid behavior?
If you don't want the player to collide with trees, you need to define collision polygons on the tree trunk only, and also enable/disable the Solid behavior with events, depending on player position.
Is music already playing when you open this layout? If it is, then you need to stop it! Use "If sprite not on screen -> Audio stop music tag"
Can you post a screenshot of events? Or better yet - your project file.
To convert from layer A to B:
X = CanvasToLayerX("B", LayerToCanvasX("A", x, y), LayerToCanvasY("A", x, y))
Y = CanvasToLayerY("B", LayerToCanvasX("A", x, y), LayerToCanvasY("A", x, y))
Member since 26 May, 2016