FlxState change and app crash

24 views
Skip to first unread message

mehmet tosun

unread,
Jul 24, 2015, 5:30:18 PM7/24/15
to haxef...@googlegroups.com
Hi,

i have a state change problem on lg g3 android release.
First, know that i am not using spritesheet.

There are two state. Menu and Play state.
scenaro 1:
initialscene menustate. app starts and menu state works. When i click start button, destroy all sprites and change state to Play state but a black screen comes and app crashes.

scenaro 2:
initialscene play state. App start and playstate works well. then i change state to menustate. it is okey too. in menustate i clik start buton to change state to play state, a black screen comes and app crashed.

All my images are 160ppi and they are not big files.

and last is i am not having this problem when exporting to flash.

Any approach to tackle with these problem?

Thanks.

SruloArt

unread,
Jul 25, 2015, 2:24:36 PM7/25/15
to HaxeFlixel, mhmt...@gmail.com
It's really just guessing without a proper debug logcat :) The fact that you're not having the same error on Flash suggests it has something to do with rendering (What's the behavior on the Windows / Neko targets vs the HTML5 target?). However, this error sounds like you're just destroying an asset that should exist on both states (like a mute button for example), so, again, I have no idea...

mehmet tosun

unread,
Jul 27, 2015, 3:11:44 AM7/27/15
to HaxeFlixel, mhmt...@gmail.com
I find the problem.

i make a Reg.imagaPath variable.

When state changes this variable do not changed according to play state.

When i corrected Reg.imagePath variable it work.

Thanks SruloArt for your orientation.


On Saturday, July 25, 2015 at 12:30:18 AM UTC+3, mehmet tosun wrote:
Reply all
Reply to author
Forward
0 new messages