You do not have permission to view this post
According to the documentation, smart portrait banner height can be 32/50/90.
However, I allocated 150px space for the banner, and it's still not enough - looks like sometimes banners may be 200px or event taller. As a result, it's partially covering some of the UI elements in my game.
I am using "Smart portrait" banner, viewport size 1080 x 1440, scaling "Scale outer".
What is the actual maximum banner height? How can I make sure it doesn't exceed 150px?
Try this:
.
I often use a combination of debugger and browser log. For example, in your first picking event you can add: Browser Log "First pick: " & Object.PickedCount
In the second picking event: Browser Log "Second pick: " & Object.PickedCount & ", UID: " & Object.UID
Then run in the Debug Mode, open browser console, check the log and instances.
Here is an old demo I made:
howtoconstructdemos.com/top-down-view-shooter-collect-swap-and-fire-different-weapons
It's not very good, but it should give you the idea.
I'm pretty sure probability tables are global.
You can probably overwrite them when you move to another level, by creating new probability tables with the same names.
Develop games in your browser. Powerful, performant & highly capable.
You have one extra comma at the end of your json strings.
Change [[1,"0"],[2,"1"],[1,"2"],] to [[1,"0"],[2,"1"],[1,"2"]]
[[1,"0"],[2,"1"],[1,"2"],]
[[1,"0"],[2,"1"],[1,"2"]]
Yes, it's a bit confusing. In the editor axis X is horizontal. In debug X is vertical.
By the way, you can rotate the array in editor. Right-click and select Transpose. I find it easier to enter data in rows, so I often rotate if back and forth.
"Compare touch speed" and "compare touch orientation".
This is possible with expressions - Touch.SpeedAt(0) and Touch.AngleAt(0)
This should be enough for simple swipe gesture recognition, but you might also want to compare touch start and end time - to check that it was a short gesture.
dropbox.com/s/gk6xktdvn0p9cn0/SwipeControls.c3p
Ouikka If you have a folder project, you can zip it, rename .zip file to .c3p and try opening it. See this comment.
I made this demo for another post:
dropbox.com/s/exiesrn5khmxbfr/CodeEnter.c3p
It won't work on mobile though without the on-screen keyboard.
I will never in my life use the default theme
I also prefer dark themes, but all dark themes for C3 I've tried were terrible (IMO). So I'm using the default one..
Anyway, I am not suggesting you to switch the theme permanently, only for testing.
Have you tried saving as a single C3P file? Does it have the same problems?
When the project won't load, try pressing F12 and see if there are any errors in the console log.
Yeah, I would also suggest a different browser. Some other things you can try:
I think the easiest method is to add a giant invisible TiledBackground (or sprite) object with Drag&Drop behavior, and pin all platforms to that object.
On start of layout -> Platform pin to Attacher (Not the other way around!)
And don't use bar style or rope style for Pin.