Re: bgt three questions
well, please help to put the timer on the shot.
URL: http://forum.audiogames.net/viewtopic.php?pid=198909#p198909
___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin
Re: bgt three questions
and still guys like to do during the shooting normally play a sound, and that sound is one of 10 shots#include "dynamic_menu.bgt"#include "sound_pool.bgt"const int board = 50;int player_position = 0;int player_hp = 500;sound_pool pool;sound_
Re: bgt three questions
да и еще ребят, как сделать чтоб во время стрельбы нормально воспроизводился звук, а то 1 звук на 10 выстрелов#include "dynamic_menu.bgt"#include "sound_pool.bgt"const int board = 50;int player_position = 0;int player_hp = 500;sound_pool pool;
Re: bgt three questions
instead, the code okay, just tell me please how now do my attack, the death of the enemy, and how you can make a move, so that when you hold the right arrow, he moved. ;Here's the code:#include "dynamic_menu.bgt"#include "sound_pool.bgt"
Re: bgt three questions
Lord, thank you good people there !!!;Well, let it be automatic, 40 ammo in the cage, and the enemy is exactly the same weapon. ;one injury 10 hp, attack distance of at least 10 positions.
URL: http://forum.audiogames.net/viewtopic.php?pid=198436#p198436
Re: bgt three questions
принцип я понял, скажите, что менять в передвижении? она не исправна.
URL: http://forum.audiogames.net/viewtopic.php?pid=198639#p198639
___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin
Re: bgt three questions
The easiest way to do this looks something like:if(absolute(player_position-this.position)<=10 and this.ammo>0) {// play the attack sound.this.ammo--;player_hp-=10;}But this probably won't be enough to make for a playable game; if this is your enemy::at
Re: bgt three questions
so it will help someone?
URL: http://forum.audiogames.net/viewtopic.php?pid=198572#p198572
___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin
Re: bgt three questions
well, please help
URL: http://forum.audiogames.net/viewtopic.php?pid=198566#p198566
___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman
Re: bgt three questions
Lord, thank you good people there !!!;Well, let it be automatic, 40 potronov in the cage, and the enemy is exactly the same weapon. ;one injury 10 hp, attack distance of at least 10 positions.
URL: http://forum.audiogames.net/viewtopic.php?pid=198436#p198436
Re: bgt three questions
That code is mostly good.There are only two major problems:1. The enemy is declared inside the loop, so it is created and destroyed every iteration. Just move the lineenemy enem;Above the line that says while(true)2. There's no way to leave the game after it s
Re: bgt three questions
Here is what is wrong in this code:#include "dynamic_menu.bgt"#include "sound_pool.bgt"int player_position=1;const int board = 30;sound step;sound_pool pool;sound music;sound start;sound game;void main(){// Load the music.music.load("sound
Re: bgt three questions
And by the way, I do not quite understand the function of movement in the class to write the enemy or not, and how it is caused
URL: http://forum.audiogames.net/viewtopic.php?pid=198299#p198299
___
Audiogames
Re: bgt three questions
hello!;you have a very clear explanation, and I almost entirely got it left only the following:;1. how to create the function of weapons?2. how to make my attack, and that the enemy attacked, too?;if you can help, I will be happy.;thank you!
URL: http
Re: bgt three questions
hello!;you have a very clear explanation, and I almost entirely got it left only the following:;1. how to create the function of weapons?;2. how to make my enemy and attack from a vending machine?;if you can help, I will be happy.;thank you!
URL: http
Re: bgt three questions
hello!;you have a very clear explanation, and I almost entirely eponyal left only the following:;1. how to create the function of weapons?;2. how to make my enemy and attack from a vending machine?;if you can help, I will be happy.;thank you!
URL: http
Re: bgt three questions
Perhaps add a timer as a property?timer time;then the movement function looks like this, assuming you have a variable called player_position:void move() {if(time.elapsed>=speed) {if(position>player_position) position--;else position++;pool.play_1d("soun
bgt three questions
Hello everyone!;Interested in this:;1. how to bind to an object such as sound_pool class enemy?;2. as when traveling in the menu to play sound?;3. So I did the code:;class enemy;{;int hp;;int speed;;int position;;enem ();{;hp = 100;;speed.init ();;position = 20
18 matches
Mail list logo