well i haven't seen any posts to do with this so i wanted to know how to spawn an object maybe like a bullet and of course shoot it in one direction.
E.g. 1: when RT pressed = object spawns and goes in direction game character is looking at.
E.g. 2: at a set time (every 5-10 seconds) an enemy/object spawns and moves towards the character.
( BTW i know how to set timer and make my character look around and move around.)
these are the only two things i need to know and my FPS COD zombies game/level/track is complete, hope someone can help.
(P.S: credit will be given in description of track)
Not really a skill game guy, but i'm guessing you make the object follow the character, use a visibility event to "spawn" it and an OPE to move it? I may be wrong, but you seem to have a good handle on the editor so you might know if that would work or not. Otherwise, I'm sure someone more knowledgeable will be able to help you out.![]()
Not 100% sure if this will work... but i will try it out see were goes, but thanks so much for posting.Originally Posted by Barrybarfly
if anyone has any other ideas please post![]()
OK, well I wasnt too sure about it, it was a bit of a "common sense" guess really. Hopefully you'll get the answer from someone though.
their ar 2 mayor ways to do this
physics based and animation based(ope)
physics is probably easier but requires the physics bubble and it might be too small
(you'll need atleast 1 ope(global wil be easier) for the bullet to teleport it back to the location of your gun(object info datascources)
completly ope based, much harder to program, requires alot of opes for all objects
as for problem 1 use state events to let it start moving
for ope based movement curved datascources are easy but limited, set events and variable datascources give endless posibilities
for the direction you'll need math might be posible if you use physics to let the forces point away or towards certain objects, mess with it till you find a way it s usefull for your idea
for 2 u could use visibility events and state events or ope's with set events to teleport to the places you want(you will need to use opes if you want anything to respawn regardles of your method
as for detailed help only very detailed ideas are posible and it is easier to try figure it out yourself
i know 5different ways to just make something move from 1 spot to another, the posibilities are endless of this editor and that makes it that their are many ways to solve things
I was planning on asking the same question as this as I've run into the same issue, but I've got 5 tracks on the go at the moment so I had decided to wait and work on another track till I could figure this out. But as it's been asked already...
The issue is much more complicated than just saying "Use an OPE". My game character is moved by an OPE, so the "bullets" need to follow it with another OPE, which is fine, but when they fire you need to switch to a local OPE to get the direction, or alternatively if you really want global you need to work out the formula for a line on a 3 dimensional plane for the bullet to follow, which at the moment is a little beyond my mathematical ability. Once you've switched to local, the bullets then need to switch back to global to follow your character again till they are next fired.
I haven't tried the switching to local idea yet, I'm just hoping that when you do it Zeros the co-ordinates each time, otherwise it's gonna get even more complicated.
If anyone does have an actual solution for this I'd be very interested to hear it.
everything can be done completly local or completly global in several ways, each method has its own advantages and disadvantages and the best solution depends on what you want and while making it you can often come to the conclusion that you need to rework things because it doesn't work like you hoped or that your new ideas that you want to add would fit another method better forcing you to rework your code or rework your idea
it can even be done with physics or a combination of everything, you might bumb into some limits of the editor but then their still are other ways to do it making your idea still posible, the biggest limit is the xbox hardware
Care to share any of them?Originally Posted by sparkierjonesz
if you have specific questions you can always pm but the complexity of the problem is to big to give general info, thats why i resort to the events that can help
like moving a bullet depends on gametype and the looks of the enviroment,
moving an enemy depends on how you want it to interact with things
I'm not worried about moving the enemy, or the game character for that matter. I have that down myself.
And if using a local OPE resets all coordinates and axis to 0 each time you use it after switching from global and back again then I shouldn't need any help, I've just not tried it yet.
But if I have problems, I know who to come to![]()