ID:150502
![]() Sep 12 2001, 8:13 am
|
|
can annyone tell me the command to look up that will help me maje another mob appear next to a mob for a sec(i know that flick will make a mob appear) i need it to appear next to a mob for about 2 secs
|
Jotdaniel wrote:
and niether of those tell me what i wanted to know, and i already knew what they do sleep(20)//Causes a 2 second delay on any action called// |
Jotdaniel wrote:
and niether of those tell me what i wanted to know, and i already knew what they do Your right, those dont tell you the code to "make a mob appear for 2 seconds then go away" but those are most likely exactly what you want. If you keep looking for exact code, then you wont ever find what you need, even if its thrown at you. Sleep does what it says, sleeps. Now im not going to tell you how to sleep the proc and then delete the mob after the sleep is over. Alathon |
im sorry, i wasnt being very specific. all i really need to know is how to make the mob appear one tile over from the player mob.
|
Jotdaniel wrote:
im sorry, i wasnt being very specific. all i really need to know is how to make the mob appear one tile over from the player mob. when making the new mob put usr.x-1 |
Jotdaniel wrote:
im sorry, i wasnt being very specific. all i really need to know is how to make the mob appear one tile over from the player mob. You might do this by increasing/decreasing the y or x values (Y, + is north, - is south. X, Im not sure which is east and west, try for yourself) Alathon |
ok ill try and be as exact as i can. im making a dbz game(dont even say it), and i dont want the ki blasts to fly towards the mob your trying to hit. i just want it to stay beside the attacker. All i need to know it how to make the ki blast icon appear one square away from the attacker but also in the same direction as the one being attacked.
|
Jotdaniel wrote:
ok ill try and be as exact as i can. im making a dbz game(dont even say it), and i dont want the ki blasts to fly towards the mob your trying to hit. i just want it to stay beside the attacker. All i need to know it how to make the ki blast icon appear one square away from the attacker but also in the same direction as the one being attacked. For this it would be easier to use overlays/underlays |
yeah but how do i make it one tile away from the mob and in the same direction as whats being attacked?
|
Jotdaniel wrote:
yeah but how do i make it one tile away from the mob and in the same direction as whats being attacked? Make the projectile icon with movement icons in a movie and if you use overlays it will look as the player is holding a projectile in his/her hand and will take much less code ( which is good for your sake ) to do.. |
Jotdaniel wrote:
can someone please tell me how to make it go the same direction? Do you mean straight line missile fires? non homing |
look up the sleep proc and spawn proc..