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 - bambucha

Pages: 1 2 3
31
Ask a Question / Re: Error when actor gets destroyed
« on: June 19, 2014, 06:52:24 am »
I actually think i fixed the problem, havent gotten the error since i added "if actor is alive" to everything.
I thought the collision crashed the game, but actually the game crashed because of "die on leaving screen" behavior for other actors.

Damn i am so stupid sometimes :P

32
Ask a Question / Re: Error when actor gets destroyed
« on: June 19, 2014, 04:17:15 am »
I removed the kill after fade because the kill on leaving screen works fine now :) I dont even know what i did to fix it.

But I get another error now... When an enemy car collides with the player car at higher speeds, the game crashes with this error:
Code: [Select]
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at MethodInfo-4243()[Source/scripts/SceneEvents_3.hx:481]
at com.stencyl::Engine$/invokeListeners2()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib/stencyl/1,00/com/stencyl/Engine.hx:4020]
at com.stencyl.models::Actor/innerUpdate()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib/stencyl/1,00/com/stencyl/models/Actor.hx:1453]
at com.stencyl::Engine/update()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib/stencyl/1,00/com/stencyl/Engine.hx:2520]
at com.stencyl::Engine/postUpdate()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib/stencyl/1,00/com/stencyl/Engine.hx:2732]
at com.stencyl::Engine/onUpdate()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib/stencyl/1,00/com/stencyl/Engine.hx:2708]

What the game is doing: Enemy car falls down using gravity, and the player car has to dodge it. The speed of the game is constantly increasing. At the beginning there is no errors and everything works fine, but when you get to higher speeds (higher speed = just increases the amount of cars you have to dodge, it starts spawning at 1.5sec per car and stops at 0.3sec per car) and collide with a car i get that error. I do always check if the player is alive, to kill it and i dont do any other stuff that would affect the player / cars.

Any idea what would cause the problem? Would screenshots of the code help? if so what part :)

Thanks!

33
Ask a Question / Re: Error when actor gets destroyed
« on: June 16, 2014, 09:47:16 am »
Thank you!
I tried Die on leaving screen again today and it works flawlessly. I don't have any other code related to coins, except collision with player and spawning.
I used Fade out after x seconds and kill after fade in the mean time. But now it doesn't work anymore and gives me the exact same error.
I really don't know what would be the problem here since i never change the coins position or anything like that.
Coins only move (fall) with gravity, maybe this could produce the error?

34
Ask a Question / Error when actor gets destroyed
« on: June 15, 2014, 01:25:25 pm »
Hey!

I havent changed anything on my code, but i started getting this error:

Code: [Select]
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.stencyl.models::Region/innerUpdate()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib/stencyl/1,00/com/stencyl/models/Region.hx:320]
at com.stencyl::Engine/update()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib/stencyl/1,00/com/stencyl/Engine.hx:2459]
at com.stencyl::Engine/postUpdate()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib/stencyl/1,00/com/stencyl/Engine.hx:2732]
at com.stencyl::Engine/onUpdate()[C:\Program Files (x86)\Stencyl\plaf\haxe\lib/stencyl/1,00/com/stencyl/Engine.hx:2725]

The error shows up after a Coin (actor) which falls down, exits the screen and gets destroyed (it has Die on Leaving Screen).
If the Player picks up the Coin, everything is ok ... I really do not get why would i get the error?

Thanks in advance!

Pages: 1 2 3