boulerzzz's Forum Posts

  • AllanR Ashley

    Yes I found out that was the problem. My game is a word game and uses both cyrillic and latin letters so I though I would save time and simply use a webfont.

    Having more than ~20 text objects on the screen while zooming makes it impossible. Replacing them with spritefont makes everything smooff.

    Do you guys think I should replace ALL instances of my text object with a spritefont or just the ones that are visible while zooming? Should you use text objects at all in your games? :)

    Edit: In the manual it says: "Text rendering is very fast as long as the object is not changing, but upon changing the object must do a relatively expensive redraw of the text and replacement of the cached texture"

    In my game I got 12 text objects that are 115x115 in size and they change font color and position every tick. Are these "expensive redraws"? The text itself changes like every 10 seconds so that shouldn't be a problem, right?

  • You are right Ashley.

    I'll look further into this tomorrow and find whats causing the Fps drop when I'm zooming out after the round has ended.

    I made an empty project and the zoomed out without any problem. If I'm zooming out during the start screen in my game the fps remains stable. (I'm guessing it's something like zooming and scrolling at the same is not good for CPU or maybe too many objects on the screen while scrolling and zooming)

    I'll try to start a new project and gradually add stuff to the game and test to see where the problem starts and share a project and a bit more info later. :)

  • I'm using 720 x 1280 as resolution.

    On my android:

    CPU 20-30 % while playing (Goes to 30-40% when zooming out)

    GPU 10%

    On my computer: (On my computer the zooming works without any fps drop.)

    CPU 2% while playing (Goes to 5-10 when zooming out)

    GPU 0.5%

    Tried to scale out the whole layout but it does also massively drop the FPS.

  • Hi!

    In my game the player builds a tower. My game runs stable 60 Fps and is really smooth on my android phone.

    After the round I scroll to the middle of the tower and zoom out the layer to create a really cool effect.

    However when I zoom out the layer the FPS drop to like 1-5. When the layer has zoomed out the game returns to 60 fps again.

    I use 2 System events when the game ends:

    1. To scroll to middle of tower I use:

    Scroll to y (min(Scroller,scrolly+speedscroll*dt))

    2. While the game scrolls to middle of tower I also zoom out the towerlayer

    Set layer "Tower" scale to max(zoom,LayerScale("Tower")-speedzoom*dt) <-- Makes FPS drop to 1-5

    I'm using the runtime 3 and testing on a honor 9 lite

    Like I said. The frames only drop when the layer scale rate changes. If I create a small tower and the game does not need to zoom everything runs smooth when the round ends.

    Any idea why I cant't change layer scale rate?

  • Thanks.

    I did export to android studio and tried that way. IF I remember correctly there is a long wait before the loader layout shows up on mobile. And people don't have a lot of patience these days. So even a second of delay before any feedback and people think the app is broken or something. :P

    I now have the splash screen show up immediately and can control the delay for it, but there is an annoying white flash after the splash has finished. I think my code is wrong.

    I made a new Java class for the SplashActivity.

    public class SplashActivity extends AppCompatActivity {
    	private static int SPLASH_TIME = 1750; //time in MS the splash stays on the screen.
    
    	(at)Override
    	protected void onCreate(Bundle savedInstanceState) {
    		super.onCreate(savedInstanceState);
    		new Handler().postDelayed(() -> {
    			Intent intent = new Intent(SplashActivity.this, MainActivity.class);
    			startActivity(intent);
    			finish();
    		},SPLASH_TIME);
    	}
    }
    

    Yeah a nice tutorial would be gold!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi!

    How can I set my own splash screen?

    In IOS I got it working.

    For IOS I compile with phonegap and they've got clear instructions on how to add splash screen.

    1. add the following plugin and setting to config.xml

    <plugin name="cordova-plugin-splashscreen" />

    <preference name="SplashScreenDelay" value="Time in ms" />

    2. After that you just replace your "default@2x~universal~anyany.png" and your splash screen shows up instantly when I launch the app. I set loader style to nothing and use a loader layout that's only black because the game loads so fast anyways. IOS is perfect when I do that.

    But whats the procedure for android when your using the build service?

    Replacing the "default@2x~universal~anyany.png" doesn't do anything for android. Should I use the construct 3 splash and somehow replace that image? I can't find it anywhere in my apk though.

    Do I need a third party plugin or something?

  • Grr

    It used to be so easy with admob!

    But now it's much more complicated. I keep getting "no ad to show" when I try to load my interstitial ad. I test on an iPhone 5 with IOS 10.3

    ------------------------------------------------------------------------

    - I add the MobileAdvert plugin and fill the properties.

    - When I first tried I got ads to show 100% of the time WITH user consent.

    - But no ads showed WITHOUT user consent.

    - I changed to 12 custom providers as the manual suggest.

    - Now I get error message "no ad to show" like 99% of the times WITH user consent.

    - WITHOUT user consent it's the same thing but I sometimes get a random green and black ad(?)/screen that brings me to google.com when I tap it.

    ------------------------------------------------------------------------

    Could it be because I use "test mode"?

    Could it be because the app is not live?

    Whats the point of limiting the providers to only 12?

    Wont this affect "eCPM" and "match rate"?

    Will potential NON EU users and people who say "yes" also be limited to only 12 ad providers?

    Does the "no ad to show" just mean there was no ad available from any of my 12 providers?

    Wouldn't it just be easier to have only one "Yes button" on the consent screen and have everything work as before?

    Could I perhaps delete the no button and just force people to say yes since this clearly does not work for me?

    Do I need to add any actions for the plugin for different "MobileAdvert.ConsentStatus" statuses?

    ------------------------------------------------------------------------

    Lots of questions but I just don't understand this at all! Please shed some light on the GDPR and admob mystery!

  • Hi

    OK, I just got a feeling I was doing something wrong. :)

    My game takes about 23mb when installed on my iPhone so it's still quite small compared to other games like mine.

    BTW my ads work fine if I choose to see relevant ads. But if I choose to see "less relevant ads" no ads are showing while I am testing my app (using test mode).

  • Hi

    I use Phonegap to compile my games. My game used to be 1.5mb but after I add "construct-mobile-advert" for ads the .IPA grows to 58mb. This is when I download the .IPA from phonegap.

    The install size grows from 6mb to 18mb.

    Anyone know why "construct-mobile-advert" add to the size? :D

  • Awesome!

    This was exactly what I needed!

    Thank you so much! :)

  • Hi!

    Does anyone know how I can make a trail effect for a ball?

    Here is an example:

    It's easy to achieve if your going in a straight line but if I have a ball that bounces I can't really seem to get it to work properly.

    It looks OK to just spawn another ball and fade it every tick but I would like to learn how to make a proper trail effect.

    If you know how to do it please share! :D

    EDIT:

    Better Image of the trail effect I would like to learn

  • Hi

    1. Built a simple project in both C2&C3, and used C3 build service to get my signed APK.

    2. Uploaded to google play and pre-launch report shows this warning.

    android:id​/content​/SystemWebView[0]
    

    Here are 2 images showing what pre-launch report tells me

    https://imgur.com/a/gZjfCOV

    Does anyone know why I'm getting this? When I was using C2 I never had issues with cocoon and phonegap. I would like to use this build tool since it saves time if it works!

  • Hi!

    I got 2 questions about exporting to IOS using phonegap. I've been using Cocoon but since it seems like they died and don't update anymore I've decided to use phonegap.

    Tried it first time today and it was really simple and performance was nice!

    There are 2 things I was wondering about though and maybe someone who has been using phonegap longer can answer. :)

    1. Is this the correct way to add splash and icons in config.xml? Found this on phonegaps site: docs.phonegap.com/phonegap-build/configuring/icons-and-splash

    But there were other instructions too that looked different.

    We are using cordova cli 6.5.0, right? When I did the following the icons and splash worked great on my test device (iphone 5 - ios 10.3). But will it also work on newer iphones? It only says "iphone" & "iPhone 6 / 6+" in my config. Do I have to add something else for Iphone 7 and newer?

    This is how I added icons

    <!-- iPhone 6 / 6+ -->

    <icon src="icon-60@3x.png" platform="ios" width="180" height="180" />

    <!-- iPhone / iPod Touch -->

    <icon src="icon-60.png" platform="ios" width="60" height="60" />

    <icon src="icon-60@2x.png" platform="ios" width="120" height="120" />

    <!-- iPad -->

    <icon src="icon-76.png" platform="ios" width="76" height="76" />

    <icon src="icon-76@2x.png" platform="ios" width="152" height="152" />

    <icon src="icon-83.5@2x.png" platform="ios" width="167" height="167" />

    <!-- Settings Icon -->

    <icon src="icon-small.png" platform="ios" width="29" height="29" />

    <icon src="icon-small@2x.png" platform="ios" width="58" height="58" />

    <icon src="icon-small@3x.png" platform="ios" width="87" height="87" />

    <!-- Spotlight Icon -->

    <icon src="icon-40.png" platform="ios" width="40" height="40" />

    <icon src="icon-40@2x.png" platform="ios" width="80" height="80" />

    <icon src="icon-40@3x.png" platform="ios" width="120" height="120" />

    This is how I added splash

    <!-- iPhone and iPod touch -->

    <splash src="Default.png" platform="ios" width="320" height="480" />

    <splash src="Default@2x.png" platform="ios" width="640" height="960" />

    <!-- iPhone 5 / iPod Touch (5th Generation) -->

    <splash src="Default-568h@2x.png" platform="ios" width="640" height="1136" />

    <!-- iPhone 6 -->

    <splash src="Default-667h@2x.png" platform="ios" width="750" height="1334" />

    <splash src="Default-Portrait-736h@3x.png" platform="ios" width="1242" height="2208" />

    <splash src="Default-Landscape-736h@3x.png" platform="ios" width="2208" height="1242" />

    <!-- iPad -->

    <splash src="Default-Portrait.png" platform="ios" width="768" height="1024" />

    <splash src="Default-Landscape.png" platform="ios" width="1024" height="768" />

    <!-- Retina iPad -->

    <splash src="Default-Portrait@2x.png" platform="ios" width="1536" height="2048" />

    <splash src="Default-Landscape@2x.png" platform="ios" width="2048" height="1536" />

    Is this how you do it? I did get a warning about a missing 1024x1024 icon when uploading to testflight.

    2 My app did not start at first. It only logged me into game center but newer went from loader layout to the game. I then did some research and replaced the "cordova-plugin-wkwebview" with "cordova-plugin-wkwebview-ionic-xhr" and everything worked fine. Is this something you always have to do in phonegap?

    Just thought I would ask here in case someone could clarify a little bit.

  • radbrothers

    I'm a little bit curious.

    Do you get this in all your apps?

    What plugins are you using? I'm using the Firebase plugin from rexrainbow and cranberrys google analytics. Maybe one of these could cause problems?

  • radbrothers

    Did you find any solution? I've been looking all over the place for the root cause.

    It sucks because Google Play is downranking apps so hard right now because of this! Android vitals does not really give any helpful information about the issue either.

    Maybe we should just kill the app when it's suspended? That should solve this shouldn't it?