Stencyl v03 Collision

timbirks

  • Posts: 75
Anyone had any problems with collision in v3.0?  when the missiles hits an object it is meant to kill the missile and create and explosion actor, at the moment the missile is killed but the explosion actor is not created, however when I take out the Kill block, it will create the explosion but repeatedly because the missile isn't killed and is constantly colliding. Any ideas how to kill and actor and switch to another actor in V3.0, because it worked in 2.3.  many thanks.
Super Crash Land v1.2 - Available to Download now from Google Play absolutely free!   

https://play.google.com/store/apps/details?id=com.timbirks.supercrashlandv12

Tuo

  • *
  • Posts: 2469
You should be able to do (in the actor):

when self collides with actor of type missile
   create explosion actor at x of self, y of self
   kill [actor of type]
   kill self
Don't look to me but rather to the One who is the reason for what I do. :)

If you need help, send me a PM. Even if I haven't been on in the forums in ages, I still receive those messages via email notifications. You can also reply to any of my forum posts, regardless of the age (especially if I created it), and I will likely reply.

If you want to see the programming behind certain types of games, feel free to check out my "Demo-" games on StencylForge (http://community.stencyl.com/index.php/topic,16160.0.html)

timbirks

  • Posts: 75
Hi,   when I kill the actor it comes up with the error message Critical Error: Null Object Reference, makes no sense.  only started doing this in v3.0, gonna have to go back to a much earlier version and rebuild the game i think  :(
Super Crash Land v1.2 - Available to Download now from Google Play absolutely free!   

https://play.google.com/store/apps/details?id=com.timbirks.supercrashlandv12

Tuo

  • *
  • Posts: 2469
Screenshot of the code?
Don't look to me but rather to the One who is the reason for what I do. :)

If you need help, send me a PM. Even if I haven't been on in the forums in ages, I still receive those messages via email notifications. You can also reply to any of my forum posts, regardless of the age (especially if I created it), and I will likely reply.

If you want to see the programming behind certain types of games, feel free to check out my "Demo-" games on StencylForge (http://community.stencyl.com/index.php/topic,16160.0.html)