Using an object as a projectile.

Started by budsmoka, Fri 30/07/2010 14:47:14

Previous topic - Next topic

budsmoka

Okay, at the moment the script, and everything is on another pc, with me unable to get to it. So I will try and explain my problem as best as I can, and maybe someone has ran into something similar.

Okay so basicly I have a game with a flying saucer, your floating around space, and I have meteor objects that fly all around the place moving around in random spots.

Now I set up a hotspot that covers the entire room, and put for any look(Because in spaceship mode there will be no look only shoot!) to move another invisible object to right under the ship, then make it visible, then make it animate and move and pretty miuch "fire" at where the mouse was when it clicked.

However, and heres the problem.

When the object has to touch the flying saucer character to get to the x,y of the mouse it sometimes makes its own "creative" little routes. By going one way, then looping back another.

also at some spots of the screen even when the character sprite isnt in the way it will go in funky directions or not quite where it was supposed to.

Anyway I know thats vague, and Im trying to get the script on this pc as we speak. Any help you can offer is greatly appreciated.

Khris

Moving objects adhere to walkable areas unless told not to.
You can either turn of the solidity of the involved objects and characters or use the eAnywhere parameter in the oBullet.Move command.

budsmoka

neither seems to help. Im thinking maybe my room size being so large has something to do with it.

Its odd its like the mouse.x and mouse.y are not capturing right, because sometimes it just moves in the oddest directions. Im gonna try making the bullet a character or something. I also found some old threads relating to bullets, its mostly over my head, but im gonna try some of the idea there.

SMF spam blocked by CleanTalk