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

Pages: 1 2 3
1
Ask a Question / Re: Platformer Enemy
« on: February 17, 2019, 03:19:55 pm »
There's the easy math extension that may be of some help as it lets you easily get values such as the distance between two actors.

http://community.stencyl.com/index.php/topic,27769.0.html

Moving an enemy shouldn't be too difficult.  You can check if the player is to the left or right of an enemy by comparing the x-center values of each. Then if the player is within a certain distance,  get the enemy to move horizontally towards the player.

Checking and comparing the y-values you can see if the player is within line of sight. If so, shoot towards the player.

Finally, if you don't want your enemies to fall off platforms, you need to check if a tile doesn't exist in front of the enemy. So when it finds a gap, it stops moving. You can do the same to stop it if there's a wall in the way. Just check if there is a tile in the way.

I'll work with this information and see where I can get, thank you.

2
Ask a Question / Re: Platformer Enemy
« on: February 17, 2019, 03:18:23 pm »
Have you experimented with any of the behaviours?

Would the follow target behaviour work?



Yeah, I messed with behaviors. Follow target acts like it's a top-down game, so the enemy floats toward the player like so.

3
Ask a Question / Platformer Enemy
« on: February 17, 2019, 12:06:31 pm »
I am completely finished with my game except for enemies. In the end, I just need one type and two boss things. I've figured out health by myself, but at least it was simple, just -1 of health when hit.

But for the life of me, I cannot figure out how to make an enemy that can move left and right and shoot at the player, maybe follow them a bit. One of the bosses just needs to go after the player while taking damage from them.

Someone please help me out with this so I can put the game up! I'm pretty sure I could've had this game out a year ago without this roadblock.

4
Ask a Question / Firing at and Following Player
« on: July 25, 2018, 04:59:08 pm »
I'm making a platformer game, and I want the enemies to fire at the player. I'm using the follow target behavior once the player comes on screen, but I don't know how to get them to start firing at the player. There's also one problem with the follow target, which is the enemy is affected by gravity but when they start following the player they just float towards you.

5
Ask a Question / Re: Unique Actor Instance Animations
« on: July 21, 2018, 10:30:16 pm »
Thank you very much! I haven't really messed with local attributes before, good to know now.

6
Ask a Question / Re: Unique Actor Instance Animations
« on: July 21, 2018, 10:08:35 pm »
This is what I have set up so far for the actor, if that's what you mean. I would place multiple of this actor, but what I have makes it so each one is the same animation.

7
Ask a Question / Unique Actor Instance Animations
« on: July 21, 2018, 09:53:15 pm »
I have an actor that acts as a prop, a corpse, with 12 variations. I've gotten to the point of having an attribute pick a random integer that decides what animation the actor has, but obviously, it affects all instances of the actor. Is there a way to make each version of the actor have its own choice of animation? I can create 12 actors for each variation, but I would like to know if it's possible to do this.

8
Ask a Question / Actor Spam
« on: June 14, 2017, 10:50:49 pm »
Both the player and the enemy fires bullets. I have them hooked up the same, except the player fires on button press and the enemy fires every two seconds. For some reason, when the enemy fires, it's just a volley of the bullet. I've checked everything three times over, why this pain.

9
Ask a Question / Re: Random Music
« on: June 14, 2017, 06:20:18 pm »
List of music names is a list attribute where you just add the name of each music in your game. Place that code in an event and  trigger it as needed.
Thanks!

10
Ask a Question / Random Music
« on: June 14, 2017, 04:17:15 pm »
I got a bunch of music for the game, but I can't figure out how to play a random piece out of all of them, if I can.

11
Ask a Question / Re: Weird Spawning
« on: June 13, 2017, 06:55:57 pm »
You should spawn the enemy in [random integer between (Y of region) and (y of region + height of region)]. This should do what you want.
If this is what you meant, it didn't work/nothing spawned.

12
Ask a Question / Weird Spawning
« on: June 13, 2017, 06:21:51 pm »
Basically I've got a region and the enemies are supposed to spawn in the region. This works, but sometimes they spawn at the bottom where the region isn't and the player can't shoot them. I don't know why.

13
Ask a Question / Re: Broken Music
« on: June 13, 2017, 05:42:26 pm »
I checked the file and reuploaded it, and it works fine. I hadn't thought to check that since it had worked perfectly before. I also removed metadata, so thanks!

14
Ask a Question / Broken Music
« on: June 13, 2017, 02:49:12 pm »
I have it in my game to when the main menu is brought up, music is set to true and it checks that and begins to play main menu music. This music plays until you start the level, which sets music to false. It checks and if it is false, sets it to true and begins to play level music. This has worked the entire time, but suddenly I've been getting error scripts if I don't disable the created and updating events for the music.

15
Ask a Question / Text
« on: April 03, 2017, 10:58:47 pm »
Okay, I'm feeling very stupid right now or this actually requires some thought. There is an extras screen in my game - where you enter codes and you get something, basically cheat codes. How would I figure out how to make it so a specific string of text is entered? I can't find any "if text ( ) is entered...".

Pages: 1 2 3