Can someone help me fix the Error ?

zidaxxx

  • Posts: 131
Can someone help me fix the error when enemy bullets, bombs and hole hits main actor ?

This is the game i am working with for my Thesis and will be pass this coming friday. please help me fix the problem of the error.
You guys can only help me with this. i don't know how to fix this problem. i am really desperate on this problem. please help me. and re upload the game ..... sorry for disturbances.

My File To Be Fix Until Saturday


Mega.co,nz Mirror 1


Mega.co,nz Mirror 2

Mediafire.com Mirror 1

Mediafire.com Mirror 2

« Last Edit: March 12, 2015, 06:34:47 pm by zidaxxx »

zidaxxx

  • Posts: 131
Someone can please help me out about the Error when colliding with Bullets while Main Actor is Attacking.

yoplalala

  • *
  • Posts: 1632
Maybe you should try another website. I cannot download it.
And try to explain your error so we know where to look :)

zidaxxx

  • Posts: 131
Try this one sir yoplalala please help me with this last 1 error. 

https://mega.co.nz/#fm/sN93VaJK

or choose one of these.

Mega.co,nz Mirror 1


Mega.co,nz Mirror 2

Mediafire.com Mirror 1

Mediafire.com Mirror 2

« Last Edit: March 12, 2015, 06:33:40 pm by zidaxxx »

zidaxxx

  • Posts: 131
This is the error i was always getting when it collides with Bullet when main actor is attacking.

Please help me.

Quote
TypeError: Error #1009: Cannot access a property or method of a null object reference.
   at stencyl.api.engine.actor::Actor/die()[/home/stencyl/stencyl.net/jenkins/jobs/StencylWorks-Dist/workspace/plaf/flash/root/stencyl/api/engine/actor/Actor.as:2615]
   at Function/<anonymous>()[C:\Users\Shirly\AppData\Roaming\Stencyl\stencylworks\preview\scripts\Design_9_9_SwordAttack.as:184]
   at stencyl.api.engine::TimedTask/update()[/home/stencyl/stencyl.net/jenkins/jobs/StencylWorks-Dist/workspace/plaf/flash/root/stencyl/api/engine/TimedTask.as:46]
   at stencyl.api.engine::GameState/innerUpdate()[/home/stencyl/stencyl.net/jenkins/jobs/StencylWorks-Dist/workspace/plaf/flash/root/stencyl/api/engine/GameState.as:1661]
   at stencyl.api.engine::GameState/postUpdate()[/home/stencyl/stencyl.net/jenkins/jobs/StencylWorks-Dist/workspace/plaf/flash/root/stencyl/api/engine/GameState.as:1511]
   at stencyl.api.engine::GameState/update()[/home/stencyl/stencyl.net/jenkins/jobs/StencylWorks-Dist/workspace/plaf/flash/root/stencyl/api/engine/GameState.as:1493]
   at org.flixel::FlxGame/update()[/home/stencyl/stencyl.net/jenkins/jobs/StencylWorks-Dist/workspace/plaf/flash/flixel/org/flixel/FlxGame.as:407]

SadiQ

  • Posts: 1795
You know that using an old version of Stencyl won't get you very far in terms of receiving help?
Since I don't have that version I can tell you that the code you have for when the actor hits a bullet should also check if the bullet is alive first.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

zidaxxx

  • Posts: 131
I don't know what version of stencyl uses when creating this Adventure Kit and I uses version 2.2 i think the older version like 1.x is the version uses in creating this kit?  So how will i construct the event behavior ? sorry sir i am suck on logic and this game making.

SadiQ

  • Posts: 1795
Well..if nobody has the old version and is able to help you'll probably have to start the entire project from scratch using the newest version.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

zidaxxx

  • Posts: 131
Oh God! i can't do that because the defense is on Sunday.  and I got complied because of this error.  But what if I go to older version and run my game? but i don't know what version should i download and install.

SadiQ

  • Posts: 1795
You don't need an even older version. You need to fix the problem that you have in this one. Maybe post the collision code?
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

yoplalala

  • *
  • Posts: 1632
I haven't this stencyl version neither. Post your code like you did last time :), it looks likes its a simple error
Cannot access a property or method of a null object reference
usually this error means  you haven't set a list to create new list befor using it.
Try playing with activating/desactivating code in the behaviour with the problem and running the code, it helps to pinpoint where the bug is.

zidaxxx

  • Posts: 131
Guys can you download the game and try it in your Stencyl ? I will post the behaviors, I really suck at this constructing thel ogic and that list thing. i never tried once.  please help me guys. your my only hope to this one problem.

zidaxxx

  • Posts: 131
These are the behaviors i use in my Enemy Actor .  please help me guys.
I'll do activating and ot deactivating the behaviors installed in my actors.

« Last Edit: March 13, 2015, 05:53:04 am by zidaxxx »

yoplalala

  • *
  • Posts: 1632
First of all in

Actor is alive

and make actor always active.

Click on actor and select the one which is the good one  ( Self ?)

zidaxxx

  • Posts: 131
The Error occurs when Enemy Bullet hits the Sword and Main Actor dies and or hit white attacking and colliding in Enemy Bullet, Bomb and Hole. in my game.