![]() |
Gravity for Baddies
How can you make the Gravity Script affect Baddies?
|
rescript the baddie.
|
Umm..I think he meant the compus, not the scripted baddies, and yes, I can think of one way to do it...
|
How?
|
Well...Officialy, its only a vestige (sp?) of an idea...Umm...No..No, it would deffinately work, and it wouldnt be to difficult from the normal grav script...Every baddy has an index, right? Well compus[index].x compus[index].y and compus[index].dir are all you need, stick em with the ifs and the commands inside a for that loops for every baddy...and your done!
|
I don't think that would work, because you would have no way of detecting if there is a wall in front of the baddy or not, so he would go right through it.
Making your own baddy would be the only way. |
Have you never heard of "onwall(x,y)" or even, in the event that he wants only certain tiles as a floor, "board[index]"?
|
Can you check the baddys onwall?
I didn't think you could, but I might be wrong. |
uhhh
not really dude. You could add something like
NPC Code: ;) |
onwall(compus[index].x+someNumber,compus[index].y+anotherNumber)
|
ugh, yes. Hadn't even thought of that. :(
|
No comment :D
|
It's been done.
|
I would appreciate it if someone would tell me the script :rolleyes:
|
Answer? Anyone? Anybody?
|
All times are GMT +2. The time now is 10:02 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.