Menu

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.

Show posts Menu

Messages - horusr

#181
Well also in read me first thread it says "The idea of this board is to allow those of you that are new to AGS to ask simple questions when you get stuck"

Well don't mind me, i am just bored. Shoot questions
#182
First of all yes it probably is.
Second that is some bad title for help post.
Third it is not a real technical question.
#183
Beginners' Technical Questions / Re: Timer Bar
Tue 18/07/2017 09:53:17
Oh, I am really sorry for asking then. I searched forum for timers but now I see it is not about timers at all.
I tried to move "DynamicSprite* sprite = DynamicSprite.Create(60, 10);" to top of the script once but that gave me error.
So we should use ".Create" comman in function but not dynamic sprite itself? Code now works btw.
#184
Beginners' Technical Questions / Timer Bar
Tue 18/07/2017 09:34:02
Hi there,

I want to add a timer bar in my game that shows how many time player has left. But I don't want it to show time in strings. I want it to be something like this(bottom right side of it):



And I created a button and draw rectangle on it with this code:

Code: ags
int timerstime = 0;
function battle_timer()
{
  DynamicSprite* sprite = DynamicSprite.Create(60, 10);
  DrawingSurface* surface = sprite.GetDrawingSurface();
  surface.DrawingColor = 1;
  surface.DrawRectangle(timerstime/10, 0, 60, 10);
  surface.DrawingColor = 2;
  surface.DrawRectangle(0, 0, timerstime/10, 10);
  Timer.NormalGraphic = sprite.Graphic;
  surface.Release();
  Wait(1);
}


function repeatedly_execute()
{
  if (timerstime > 0)
  {
    battle_timer();
    timerstime--;
  }
  else
  {
    gBattle.Visible = false;
  }
}


And it kinda works. The problem is if I don't add Wait() command it does not show bar at all.
#185
Well you need to create enemy struct I think.
Code: ags
struct Enemy 
{
  int damage;
//and some ther variables you want to use
};

Enemy bear;
bear.damage = 10;

Enemy snake;
snake.damage = 5;
#186
I think the answer could be "rol" or "anyword". This is from manual's text parser part:

QuoteThere are a couple of special words you can use with the Said command. "anyword" will match any word that the user types in. For example, Said("throw anyword away") will match if they type "throw dagger away", or "throw trash away". "rol" (short for Rest-of-Line) will match the rest of the user's input. So, you might want to do:
Code: ags
if (Parser.Said("kill rol")) {
  Display("You're not a violent person.");
}


This way if they try to kill anything they will get the generic response.
#187
Well, AGS's timers have just 2 functions: SetTimer(TimerID, Time) and IsTimerExpired(TimerID).
See manual for more help.
#188
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.
#189
Quote from: Shadow1000 on Mon 17/07/2017 04:18:56
I'm just thinking that the bald stick figure looks kinda like Hitman agent 47 ;)

Haha, I didn't play game yet but mission reminds me of a mission from Hitman: Blood Money where you need to kill someone in birthday party.
You dn't dress like clown in thisgame, right?
#190
Another congrats from me! Trying to download it now.

Btw, loved the sun!
#191
Well 1x1 looks better, smoother and more appealing.
But 2x1 has more retro feeling.
Idk, I don't play 2x1 games so I can't say which is fits better to sierra feeling.
#192
Nixxon: Wow that is good! Only problem with that is there is an issue with left road. Bottom line becomes top line and it is hypnotizing!
#193
The Rumpus Room / Re: Do you smoke? (YES/NO)
Sat 15/07/2017 21:53:45
No
#194
The Rumpus Room / Re: The Big Blue Cup Gallery
Fri 14/07/2017 16:02:59
Two of a Kind
#195
Once upon a time someone tried to draw some traditional ottoman cafe and failed and gave up at the start.
But he still thinks picture can nominate as "best stove looks like battery" and "worst tea-urn"   

#196
Imgur is cool but blocked in some countries. Like Turkey. Why the hell imgur is blocked in Turkey?!
#197
Quote from: LostTrainDude on Wed 12/07/2017 20:14:39
I'm especially intrigued by horusr's one... I dig the top-down visuals!

Oops, sorry to hear that. We changed the top-down view idea, back to standart view.
Actually I did choose top-down view because you need less detail in animations and backgrounds but that decision has some bad sides too. So we think making it standart view is better.
#198
If still looking for translator, I can try to translate it in Turkish.
#199
We are in! We try to work on something, some short top-down view game(not a Hotline Miami adventure game, didn't play that game actually) game.
We gave up about top-down view for some reasons, sorry for that.
#200
Completed Game Announcements / Re: The Front
Sat 08/07/2017 22:54:07
Just started to play game but I noticed something: winsetup.exe is for GW.exe file so doesnt works for renamed exe.

-my bad, you can go back, I don't know why I couldn't In first room if you go right, a room with friend waiting, you can't go back.
+And when I tried to use periscope with church I get this error: "prepare_script: error -18 (no such function in script) trying to run 'hchurch_UseInv' (Room 3)"
+If you press esc to skip intros early, game stops.


+ I have same problem as shadow 1000, I talk to him but can't leave room.
Ok, played again and it is ok if you go to room before shaving. If you shave before explosion, you stuck.

Oh, need sme help, I have loadedweapon but I don't know what to do to make it servicible?
I will edit after playing.
SMF spam blocked by CleanTalk