![]() |
Bomb Movement
Ok I tried this offline.
NPC Code: It didn't work for me. I was attempting to make a quest where if the player lays a bomb it would begin moving in a certain direction, and I did that above script to test to see if it was possible to actually do this. It didn't work for me. So I then went into the newfeatures2001.txt and it said all those types of variables for bombs[], arrows[], npcs[], etc were all read-only. Is there any other possible methods of moving a bomb placed by the player or am I missing something that I should add on to this script? |
You're going to want to make your own bomb NPC for this one.
Using a bomb image as the bomb, and have it scripted to blow up like a bomb after a certain amount of time. To get what you want, you're going to also have to add some script that would get it to move in a certain direction after laid (I would suggest using "move"). Etc. Pretty easy, actually. |
You could remove the bomb and move it with showimg to where you want, then place the bomb there when its at the destination?
|
Quote:
I could be wrong, that's just what I interpretted from his post. |
My goal was moving it after the player layed the bomb down. I'll figure out another way to do it.
Thanks for the help. |
Toran, you dont understand, the bomb LOOKS like it is moveing when you use showimg, its just not really a bomb anymore.
1. Add the x,y, and power to an array and remove bombs that arent at their destination. 2. use a for-loop to show the bombs at their x,y, with an image based on their power 3. add to their x and y every so often to move them. 4. when they get to their destination, use putbomb, and remove the data from the array. |
Quote:
Just making a new bomb NPC seems a lot easier. |
Quote:
|
Toran, all the kid wants is some eye candy in the first place. Why make it harder than it has to be? He wants a bomb to move from a to b. No need for an entirely new script for it.
|
Quote:
|
Just change the bomb npcw for that quest only, then change it back.
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 02:15 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.