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.


Topics - designpeg

Pages: 1 2 3 4 ... 13
16
Ask a Question / How can I add custom Javascript to an HTML5 game
« on: May 16, 2019, 09:32:15 am »
Hi, I know I can do this by adding the script to the html5 template at Stencyl/plaf/haxe/lib/assets/templates/html5/templates/index
but is there a better way of adding as script? Ideally i'd keep the script in the games extras folder.

17
Ask a Question / How do you accept android licences?
« on: April 18, 2019, 07:50:53 am »
I'm getting a  'Warning: License for package Android SDK Platform 28 not accepted.'in my log when I try to compile for Android. I've tried everything to agree licences - running licences in terminal, clicking Y for al packages, but this still persists.

18
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.

I'm getting this error when compiling for android, any clues?

19
Ask a Question / Help - iOS crash related to getFontHeight()
« on: April 08, 2019, 05:55:07 am »
I'm trying to debug a crash, and struggling to get to the bottom of it.  When I debug in xcode, it shows the error as below.

I've tried turning off behaviours that use fonts - no difference.

This  app worked when compiled with stencyl 3.4

Crashes at :
com::stencyl::graphics::fonts::BitmapFont_obj::getFontHeight()

with the error:
Thread 1: EXC_BAD_ACCESS (code=1, address=0x30)

any pointer on where to look would be appreciated!

20
Finding it really frustrating updating my apps - things that were beautifully smooth in the previous version are un playabley choppy with low fps now I've updated to the latest stencyl. If I didn't need to export for iphone x screen size, I'd go back in an instant. Can anyone tell me what benefits the lastest version of openfl brings to stencyl - it is statring to seem like a real regresion?

21
Hi, I'm updating a game with lots of images attached  to actors, most seem the same, but some that have their origin set off center or are being rotated are in completely the wrong place or angle. Does anyone know what's changed in the way this works in the new version?

22
I'm updating my games and all si going smoothly, except one bit of code I used to alter the actors animations at runtime.
The new version uses a different way of drawing or storing the animations, and I'm trying to work out what it is.

This used to work to get the bitmap of the animation, which I could then use to alter themby superimposing new bitmaps on top.

_actor.animationMap.get(/* animation name*/).tilesheet.nmeBitmap.copyPixels(/* bitmap data to overlay */, new nme.geom.Rectangle(0,0,10,10)

Now it doesn't work.

If anyone can help I'm thinking of building an extension using the method  - it's a great way to add clothes etc. which I'd put up on here.

23
Ask a Question / How do I use a variable in bracket notation in HAXE?
« on: March 26, 2019, 07:54:07 am »
I'm trying to parse some JSON, and would like to use a variable. I know I cant use a variable in dot notation, but when I use square brackets haxe expects an Int. Anyone know the answer to what syntax I need to use?


24
Ask a Question / How to call en event from an extension
« on: March 23, 2019, 01:14:38 am »
I'm building an extension, and I'd like to call an event from it.

Does anyone know how to do this? sayToScene isn't found but I don't know what to put infront of it.

25
Ask a Question / How do you upgrade to Java JDK8?
« on: March 22, 2019, 02:42:23 pm »
I'm pretty sure I have java JDK 8, the chooser points to /Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk which seem to be the latest download, but I still get a "Upgrade to JDK8 to use this feature" when I try to export HTML5

Am I doing something wrong, or is this a bug?

26
Ask a Question / Run javascript when on HTML5
« on: March 20, 2019, 09:47:52 am »
Does anyone have any tips for calling a javascript function from within a stencyl game when exporting to HTML?  Could I make an extension to run native javascript in the same way as you can ios or android.

27
iPhone / iPad / Android / Panda Babies Playhome
« on: February 08, 2019, 02:22:41 am »
After a year in the app store, I've made a lite version - free to download, in app purchase unlocks the whole game:

Game Video: https://vimeo.com/261496118
App Store: https://itunes.apple.com/app/id1442092248
Amazing Youtube reviews: https://www.youtube.com/watch?v=vC5TzrGvr3U&list=PLkRLcJNFF6mIhqBANVz0xv5xrc_XubU9M

If anyone has kids it would be great if you can get them to review it, pm me if you want a promo code

28
Ask a Question / Get 3.4 game to fill iPhone X screen
« on: January 12, 2019, 10:51:17 am »
is there an easy way to make a game fill the screen on an iPhone X? I know it can in beta 3.5, but I have an existing game that is going to be a lot f work to convert, and would really like it to fill the screen.

29
Ask a Question / Any way to keep status bar visible in IOS
« on: October 23, 2018, 03:03:42 pm »
Does anyone know if it's possible to keep the status bar, (clock, wifi, battery etc), visible in IOS - I want to keep it on iPhone X. I'v tried the obvious in Xcode - tick boxes for hide status bar - this keeps it visible in the loading screen, but it hides again once a scene loads. Any advice appreciated.

30
Ask a Question / Post data to URL block question
« on: October 04, 2018, 01:43:06 am »
Hi, I'm trying to use the Post data to URL block, but can't get it to work.

Does anyone know:

1. Is the data posted as a header , eg .  "Content-Type:application/json"  or just added to the url, eg https://url.com?foo=value&bar=anotherValue ?
2. What format should the data take in the block?
3,  Is whatever the block returns converted to a text string, or do  I need to use code blocks  to deal with whatever object is returned?

Pages: 1 2 3 4 ... 13