Hi guys! There will some information in this post about current development, new videos and new informative post. I realized for these days what go forward and never stop is and how it's important when you want to achieve something. Thank you! Now I'm okay Pretty fast I guess:D Sometimes things happen but it's normal. I'm sorry to hear that, hope things get better. the time is right, you will be I'll be back, I promise. I'm not going to quit and I wont let my dream be only a dream. If not, wait me until october or november. Maybe things will be not as hard as I imagine and I'll start working on HLD at september. I dont know if I can work on HLD and science at the same time, but for this moment I need to focus only on a university work. Listen guys, for now I need to start working on my science project to get financial independent. BUT dont forget me, I'll try my hard to continue working as soon as it is possible. Something terrible happened in my family and for now I can't continue working on the project. After that state automatically changes to attack state and enemy “jump” (move fast) to the player (in the direction where the player is). If distance to the player less than 40 state changes to prepare and enemy just stay for some time. If distance to the player less than 120 it starts to follow him, changes current state to follow. It has 4 states: idle, follow, prepare, attack. This object looks pretty similar to the player’s object but it changes states automatically. Now on top of that, we are ready to look at the enemy’s AI. We need it because without invincibility enemy would take damage every frame per second. The enemy becomes invincible for some time if it was hitted. / Move State var _x_input = keyboard_check(vk_right) - keyboard_check(vk_left) var _y_input = keyboard_check(vk_down) - keyboard_check(vk_up) var _direction_degree = point_direction(0,0,_x_input, _y_input) //direction where we go now var _x_speed = lengthdir_x(speed_, _direction_degree) //get necessary y and x speed values var _y_speed = lengthdir_y(speed_, _direction_degree) if (_x_input = 0 and _y_input = 0) return false If it is, check if it is invincible now.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |