Dragonball ultimate game
#21
Posted 19 June 2012 - 02:19 PM
#22
Posted 19 June 2012 - 08:10 PM
2 things I see right off the bat that you will no doubt want to add to your game are, 1: shoot fireballs in 4 directions instead of just one, (that one should be easy enough to figure out on your own) and 2: Your enemy needs to be able to move to dodge the fireballs, making him more challanging to hit. You should probably add event to the player. Event-Other-Intersect Boundary then put in that event drag and drop var set it to x = xprevious, then another drag and drop var set it to y = yprevious. This will stop the player from going off the screen.
That was just a test game,it's something that i made to look like an engine,the game that i'm creating is a fighting game not a shot game
#23
Posted 19 June 2012 - 08:38 PM
R press event for Player_1_obj:
change sprite to punch_1_spr; <--you can do this part in drag and drop
then in your enemy_obj collision event for collision with player_1_obj
if player_1_obj.sprite_index == punch_1_spr && enemy_obj.sprite_index != block_spr
{
enemy_obj.health -= 10;
}
This can also be done using check var drag and drop to check the sprite and a set var to subtract the health. Writing the code for it was just faster for me is all. The enemy_obj.sprite_index != block_spr means if the enemy sprite does not equal block_spr or if he is not blocking.
#24
Posted 20 June 2012 - 04:33 PM
Okay, then you don't need to be able to shoot in 4 directions. But, concider having a different sprite for each fighting move, then do a collision check and a sprite check to see if the player does damage to the enemy or not. For example:
R press event for Player_1_obj:
change sprite to punch_1_spr; <--you can do this part in drag and drop
then in your enemy_obj collision event for collision with player_1_obj
if player_1_obj.sprite_index == punch_1_spr && enemy_obj.sprite_index != block_spr
{
enemy_obj.health -= 10;
}
This can also be done using check var drag and drop to check the sprite and a set var to subtract the health. Writing the code for it was just faster for me is all. The enemy_obj.sprite_index != block_spr means if the enemy sprite does not equal block_spr or if he is not blocking.
I add to change the code to fit in my game but it displays an error
It says:
___________________________________________
ERROR in
action number 1
of Collision Event with object Kid_Goku
for object Piccolo:
Error in code at line 1:
if Kid_Goku_obj.sprite_index == punch_1_spr && enemy_obj.sprite_index != block_spr
^
at position 4: Unknown variable Kid_Goku_obj
#25
Posted 20 June 2012 - 04:58 PM
#26
Posted 25 June 2012 - 02:58 PM
#27
Posted 25 June 2012 - 06:08 PM
#28
Posted 25 June 2012 - 06:40 PM
Hello I'm making a dbz game. The game is like buu's fury and I have the following working, charging,4 attacks depending on direction, 4 ki blasts in direction facing,blocking, but I cant get the kamehameha to work. I want to charge it up and its length be relative to the amount I charged it, and for it to move in the direction i'm facing(I know how to do the directions)
I can't do energy beams neither but do you now how to make an AI?
#29
Posted 25 June 2012 - 06:46 PM
EDIT: I can show you how to make health and a ki bar for your main character
Edited by dev13, 25 June 2012 - 06:51 PM.
#30
Posted 26 June 2012 - 01:33 PM
I now how to make health but i dont now how to make ki,and my game is like dbz super sonic warriros(or jump stars) but it also has Boss battles(i now how to do those) and dragon missions(like "find the dragonballs") and mini games and it also has a hub world(in this case like dbz buu's fury) so it's rather a combination of gamesNope I made a post about that it should be a couple posts under this called enemy A.I. their is a code that makes the enemy face your characters direction but doesnt move toward him. But I have some A.I. knowledge tell me about your game is it like a DBZ buu's fury or jump ultimate stars type of fight.(What i mean by that is can your opponent move in four direction or do they move left and right?)
EDIT: I can show you how to make health and a ki bar for your main character
Edited by segasonic5, 26 June 2012 - 01:39 PM.
#31
Posted 26 June 2012 - 04:07 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











