Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - alohabrij

Pages: 1
1
Ask a Question / Re: Ego Shooter - html5 and smartphone
« on: August 17, 2020, 01:56:15 pm »
Just checking  that wouldnt the method under events => Inputs => On actor work for both HTML5 and mobile os ?

2
Ask a Question / Re: Game Testing
« on: August 17, 2020, 01:48:58 pm »
Hi,

Have you tried using lower resolution images for your actors, because in your logs there are many warnings for image sizes
"Warning: Cannot embed large file "Assets/graphics/4x/sprite-5-0.png" (>16MB)"

and later errors for builds due to same issue of  "Your game could not be built, because one of your images is too large to be included. Check your backgrounds and actors with large sprite sheets. (max_string_size reached)"

You may try to use lower resolution images (use tinypng.com) for your actor animations, if it works it will also reduce you project size.

3
Ask a Question / Re: HTML5 Game Crashing on Mobile
« on: August 17, 2020, 01:34:26 pm »
Hi retroed,

I was facing a similar issue with HTML5 on mobiles specifically.  I tried running the games in 1x resolution mode only for HTML5, now it works well for all the platforms. Also my game was 320*480 resolution just FYI.


4
Ask a Question / Re: Scaling game up in HTML 5
« on: August 08, 2020, 08:01:24 am »
Hey check the file i have attached now , let me know if it works

5
Ask a Question / Re: HTML5 Open URL in same tab
« on: August 06, 2020, 07:17:54 am »
Hi Mario,

I was looking for same thing.  I have used the solution provided in the below thread in an HTML5 game and its working fine in IOS , Windows & Android.

Have below code in custom code and it works , try out.

flash.Lib.getURL(new openfl.net.URLRequest("www.________.com"), "_self");

Solution thread provided by captaincomic :   http://community.stencyl.com/index.php?topic=44906.0 

6
Ask a Question / Re: Open Url block in HTML5 not working on Ipad
« on: August 05, 2020, 11:30:41 am »
Sorry the popup blocker was ON!!!. Apologies not an IOS user!!! it works!!

Got fooled cos it dint gave notification that pop was blocked. My mistake.

Kindly ignore!!!

7
Hi,

I am using the block

Events => Game=> Web Browser => Open URL <text> in browser block in an HTML5 game.

This block is under a button when clicked open the URL.

This block works on Firefox Win10 , Chrome Win 10, Android Pie. But doesnt work on IOS 13.5.

Any one faced similar issues ? If any work around it would be a great help. Thanks!!!!

PS: The rest of the game works perfectly fine on IOS but the final scene where it is supposed to open a URL dosent.

8
Ask a Question / Re: Scaling game up in HTML 5
« on: August 04, 2020, 11:43:00 pm »
Hi Rocktapus,

Thanks for that line , the game now appears in the center and occupies full screen thanks a tonne!!.

9
Ask a Question / Scaling game up in HTML 5
« on: August 04, 2020, 03:35:30 am »
Hi,

I am trying to match the resolution of the HTML 5 game as per the window size.  Please check the screen shot of how the game appears (sorry for bad handwriting)

The game is in 320*480 resolution , so let say when screen size it 640*960 the width and height can be doubled. How do we do this with HTML ??

This seems to be the answer  http://www.williammalone.com/articles/html5-game-scaling/

But can someone help with which parameters in index.html can be changed ?

I tried replacing the variables in below lines of HTML
#openfl-content { background: #000000; width: 640px; height: 960px; 
lime.embed ("test_resolution", "openfl-content", 320, 480, { parameters: {} });

But it dosent work.

What i have noticed via "inspect element" in the browser is there is a block, changing width & height here changes the resolution.
<canvas width="320" height="480" style="transform: translateZ(0px); width:320px; height: 480px;"></canvas>

 But dunno where do these values flow from ????

Kindly help

10
Hi Luyren,

Thanks a ton!!  :D , it worked.

Learned today that the "actor of type" block returns =>  [actor name, actor type] in a text block. Thanks!!.  :D

11
Hi , i have actor type "Button_Option"  and have 6 instances of the same i.e. Button_Option 11 to 16 in the scene.

I need to get the name  of the actor instance (Button_Option XX) , when the user clicks it.

For this i am using the attached code. But it returns the actor type name i.e. (Button_Option) and not the instance name.

Kindly help me getting name of the actor instance thanks.

12
Hi Luyren,

Thanks a ton!!! for guiding me. Changed all the files below, as mentioned in the post you sent. It worked  :)

C:\Program Files\Stencyl\plaf\haxe\lib\lime\lime\templates\android\template\build.gradle
C:\Program Files\Stencyl\plaf\haxe\lib\lime\lime\templates\extension\dependencies\android\build.gradle
C:\Program Files\Stencyl\plaf\haxe\lib\lime\lime\dependencies\extension-api\build.gradle

13
Hi,

I am compiling a test game for android for the first time.  I dont have any background in android or game development and have run into errors, with last message as Encountered errors while building your game.

Going through the logs i find that during the compilation, Gradle build daemon is started successfully.  After this attempt is made to get resources from below  urls but it fails. 

http://jcenter.bintray.com/com/android/tools/build/gradle/3.5.1/gradle-3.5.1.pom
https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.50/kotlin-stdlib-jdk8-1.3.50.jar


Before it failed There was a popup from firewall asking to allow some java process too, i had clicked allow.


There are other Urls too, i have attached all the log files as generated by Stencyl.

Any help to solve the above problem is highly appreciated.

Below is the configuration :

OS Name: Windows 10 (64-bit)
 Java Version: 11.0.3
 Java Home Environment Variable (JAVA_HOME): not set
 Stencyl Version: 4.0.2 (b10468)


14
Ask a Question / Re: "Image from File" not found error
« on: August 16, 2019, 11:12:39 am »
Weird.. I haven't seen this one before.. someone can probably give you s better fix... but..
Try placing that image with same name in that specific folder it's looking for.. may clear the error.. but not the actual problem...
You can try backing up project.. clean project.  And click the remove unused files tab... then try again

Thanks squeeb it worked :) and Thanks JeffreyDriver for sharing :)

15
Ask a Question / "Image from File" not found error
« on: August 16, 2019, 04:49:04 am »
Kindly help as i am simply trying to attach an image in a scene placed under folder specified below but throws up an error of image not found. Using do every X sec => attach instance of image => image from file to screen at X ,Y.

O/s : Windows 10 64 bit
Stencyl version : 4.0.1 b (10300)
Game name : Game 9
Image has been placed in folder : AppData\Roaming\Stencyl\stencylworks\games\Game 9\extras
Game folder shown in menu => Tools => Workspace => View Folder for this Game : AppData\Roaming\Stencyl\stencylworks\games\Game 9\
Instead of searching in the above folder the code is searching image in the  game generated folder below:
AppData\Roaming\Stencyl\stencylworks\games-generated\Game 9\Assets\data. This is as shown by below runtime error.

Error: Flash] ApplicationMain#uncaughtErrorHandler(306): [lime.utils.Assets] ERROR: There is no IMAGE asset with an ID of "assets/data/intro1.jpg"

Online documentation for Stencyl asks to place the images in extras folder under Game folder as shown under the said menu options.  This is not working. If i move the images under the game generated folder it works.

What am i doing wrong ? is there any config file pointing to specific folders for external files ? Kindly help.


Pages: 1