Author Topic: some help related to some "above than beginner" topics  (Read 774 times)

Hello, I am new to AGS and I wanted to make a nice adventure game using it. So I started learning about things I could make using this engine and read some guides related to it. but I wanted to learn some more topics which I could not find anywhere, like I learnt how to create NPCs but I don't know how to create enemies and make them attack the player and if they attack, how to make the player defend himself, so if someone could provide some light on these topics or could state any guide for such topics. I am confused if this question was to be posted here or somewhere else. Thank you!

Khris

  • having to deal with what games are going through
    • Lifetime Achievement Award Winner
    • I can help with play testing
    • I can help with scripting
    • I can help with translating
    • Khris worked on a game that was nominated for an AGS Award!
Re: some help related to some "above than beginner" topics
« Reply #1 on: 18 Jul 2017, 08:25 »
What exactly do you mean by "create enemies", "make them attack" and "make the player defend himself"?
Like Double Dragon? Be specific.

If you want to create dynamic characters, you need to use arrays or structs. To show them on the screen, either draw everything yourself or use a bunch of dummy AGS characters.

Re: some help related to some "above than beginner" topics
« Reply #2 on: 18 Jul 2017, 08:33 »
I mean how to add some thrill in my game. All I have learnt about AGS is things like creating rooms, sprites for player and non player characters, lightning level, etc. But these all can't help me to create a game with all the thrills, so I want to learn how to create those thrills. I know I will have to create the enemies myself but how to make them attack the player. If you are able to understand what I mean.

horusr

  • Just joining everything for no reason.
    • I can help with play testing
    • I can help with translating
    • I can help with voice acting
Re: some help related to some "above than beginner" topics
« Reply #3 on: 18 Jul 2017, 08:35 »
Well, there is lots of topics about making combat systems, just believe in searching.
You can even make a fight game and there is some old module for it(probably won't work now but you can examine code) Ahmet's AGS Fight Game
And you could use some better subject for your post. Like "Creating enemies" kind.
« Last Edit: 18 Jul 2017, 08:39 by horusr »

Re: some help related to some "above than beginner" topics
« Reply #4 on: 18 Jul 2017, 08:42 »
thanks, I will try it. But I don't have any knowledge of setting timers, etc. So if I could get some help on that too.

horusr

  • Just joining everything for no reason.
    • I can help with play testing
    • I can help with translating
    • I can help with voice acting
Re: some help related to some "above than beginner" topics
« Reply #5 on: 18 Jul 2017, 08:47 »
Well, AGS's timers have just 2 functions: SetTimer(TimerID, Time) and IsTimerExpired(TimerID).
See manual for more help.

Re: some help related to some "above than beginner" topics
« Reply #6 on: 18 Jul 2017, 08:50 »
And I kept that subject because there are some more confusions.

Re: some help related to some "above than beginner" topics
« Reply #7 on: 18 Jul 2017, 09:02 »
alright, some more problems I will post soon.
(If these are cleared)

Re: some help related to some "above than beginner" topics
« Reply #8 on: 18 Jul 2017, 09:10 »
One more I remembered, suppose if i was able to create some enemies and they attack the player, is there any way to state how will they harm the player, like if the enemies are some animals, some would bite and some would throw damgerous objects like stones or poisons(snakes maybe). And also how much damage will they cause the player.

Khris

  • having to deal with what games are going through
    • Lifetime Achievement Award Winner
    • I can help with play testing
    • I can help with scripting
    • I can help with translating
    • Khris worked on a game that was nominated for an AGS Award!
Re: some help related to some "above than beginner" topics
« Reply #9 on: 18 Jul 2017, 09:17 »
(Stop triple-posting! Think before you post, and if you want to add something, edit your post. This isn't a chat room.)

You're basically asking how to create enemy AI. You need variables and timers, maybe a basic state machine. This isn't really so much of an AGS problem as it is one of scripting in general.
Start simple, and go from there. It sounds like you're trying to run before you've learned to walk.

horusr

  • Just joining everything for no reason.
    • I can help with play testing
    • I can help with translating
    • I can help with voice acting
Re: some help related to some "above than beginner" topics
« Reply #10 on: 18 Jul 2017, 09:19 »
Well you need to create enemy struct I think.
Code: Adventure Game Studio
  1. struct Enemy
  2. {
  3.   int damage;
  4. //and some ther variables you want to use
  5. };
  6.  
  7. Enemy bear;
  8. bear.damage = 10;
  9.  
  10. Enemy snake;
  11. snake.damage = 5;

Re: some help related to some "above than beginner" topics
« Reply #11 on: 18 Jul 2017, 10:11 »
Hello, I am new to AGS and I wanted to make a nice adventure game using it. So I started learning about things I could make using this engine and read some guides related to it. but I wanted to learn some more topics which I could not find anywhere, like I learnt how to create NPCs but I don't know how to create enemies and make them attack the player and if they attack, how to make the player defend himself, so if someone could provide some light on these topics or could state any guide for such topics. I am confused if this question was to be posted here or somewhere else. Thank you!
I think I started wrongly. I should start from beginning. Should i post here only or in beginner's forum.