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

Pages: 1
Ask a Question / One way platforms in 2 player game
« on: May 17, 2017, 08:05:18 am »
So I'm wondering how to do one way platforms on a game with 2 players. I just can't think of a way to make it work. Using the way where you just switch the animation if the player is above the platform to solid makes it so the second player cannot pass through it, because it becomes a solid block. Does anyone know of a way to do it if 2 players are on the screen at the same time?

Ask a Question / How do I choose what I want to round a number to? [Solved]
« on: February 13, 2017, 06:43:45 pm »
I want to round a score to the nearest tenth, but the round block just rounds it to the nearest whole number. Does anyone know how to do this?

Ask a Question / Bullets Shoot Crooked in Space Invaders Game
« on: February 10, 2017, 04:30:43 pm »
As some of you may be aware, I am making a space invaders game. At the moment, everything is working except one thing. The ship the player controls shoots its bullets out the left side and then straight. Sometimes it shoots them normally, just from the middle, but most of the time they come out the left side. This is not a problem I originally had when I created the game, but it is now. Does anyone know what is causing this?

Here are my blocks for firing the bullet:

I'm wondering if there's a conflict with the "Last created actor" because the enemy ships are firing as well.

Ask a Question / Trouble Disabling Behavior [Solved]
« on: February 08, 2017, 11:25:12 am »
Hi. I am making a space invaders game and I am having trouble with disabling a behavior. I have a behavior so when the player ship enters a region, the enemy ship fires back.  That part works, but I am trying to make it so that when the player leaves the region, the enemy ship stops firing at it. I tried doing a "When player leaves region" event and then "Disable behavior for actor". I have tried many things and none of them have worked. Does anyone know what I'm doing wrong? Here is a screenshot:

Ask a Question / Error #1009 after killing actor [Solved]
« on: February 07, 2017, 04:27:22 pm »
I am making a space invaders game very similar to the tutorial on this site. I am trying to make it so when the ship enters a region, the alien ship it's in front of shoots it.  I have it set so if the alien ship is alive, every second it shoots a  bullet. For some reason when it dies, though, I get this error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
   at MethodInfo-6538()[Source/scripts/SceneEvents_0.hx:121]
   at com.stencyl.behavior::TimedTask/update()[C:/Program Files (x86)/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/behavior/TimedTask.hx:48]
   at com.stencyl::Engine/update()[C:/Program Files (x86)/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/Engine.hx:2373]
   at com.stencyl::Engine/postUpdate()[C:/Program Files (x86)/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/Engine.hx:2618]
   at com.stencyl::Engine/onUpdate()[C:/Program Files (x86)/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/Engine.hx:2611]

I am telling it to only fire a bullet if the alien ship is alive, so I don't know why I am getting this error. It seems like it's ignoring that. Here are my blocks:

I tried doing this as well, but I still got the same error.

Pages: 1