-
Member
Shooting the basketball & moving things into place
Once again i ask for advise, cause im real rubbish at knowing how to do all these things.
So, I want to fire the basketball as if its being shot at into a football goal, but as said, my mind goes blank, I try to figure it out but first but then fail. Example of what i mean is like in the 'Cannon Fodder' track.
Secondly ive seen in other tracks like in 'Impulse Control' how they move the track floor into place (there was a gap, then one part fly's directly in place of the gap) and when suddenly the floor lifts up like a ramp, or spins 360 before you go on it.
Thanks in advance for help.
-
Re: Shooting the basketball & moving things into place
Hey Alexela,
I think you're gonna want to incorporate OPE's to achieve the design you're looking for.. (Object Position Event)
I'm sure someone else will be able to give you a more in depth how-to for this, but for right now I'll reccomend you to search the forums under this category (Level Editor) for the keyword : Object Position Event. There you will find about 7 million threads all describing how to make objects animate in various ways.
Remember, though each person is using the OPE's with different objects, the logic remains essentially the same. Good luck!!
-
Member
Re: Shooting the basketball & moving things into place
Could use directional forces aimed at what you like and activate balls physics when you want it to "shoot"
OPE for the moving platforms UNLESS the rider has any chance of touching the moving object before its finished moving, in which case use physics joints and angular/slider motors etc as it allows objects to react with the bike/rider better.
-
Member
Re: Shooting the basketball & moving things into place
Thanks for your help, i guess this next one will be easy for you, but trying to figure it out, ive figured out how to make a lift (yes, i actually achieved this!), but how do i impliment the sound with it as its going up.
All I can think of is setting a sound event through an area trigger at the time the lift is being triggered itself by a sepererate area trigger, but then it may not be in exact time with it. Ive seen on many tracks they seem to get it in the time the lift is working, but cannot figure it out.
Once again thanks in advance - (im sure im being too thick to realise this is easy to work out).
-
Senior Member
Re: Shooting the basketball & moving things into place
how are you moving your lift?, guessing with physics joint, are you enabling the physics with the physics event, if so inside its settings you'll see an item called event/filter, this simply passes on the impulse it received, which in your case could be sent to a sound event set to toggle, then at the top of your lift have an area trigger that detects the lift and sends another impulse to the sound event toggle to disable it.
any trigger from the menu of triggers that has the event/filter listed at the bottom of its options means two things
1: it needs an impulse and
2: that impulse can be passed on using the event/filter
this is how impulse chains are created and allow for precise control over event ordering.
-
Member
Re: Shooting the basketball & moving things into place
Btw, thanks for all your help, hopefully what im gonna ask next is the last thing i will need help with.
Current trying to make a sprinkler spinning around squirting water in the air, but cannot get it to spin around successfully.
What ive been trying to do is putting a slider in and trying to work out the angular motion part, but doesnt stay centrally and goes all over the place.
So am i on the right track, or completely doing the wrong thing and there is a much simpler way.
Once again, thanks in advance.
-
Senior Member
Re: Shooting the basketball & moving things into place
physics joints are hard to get right, i think most need some hidden support, like a pipe/or surrounding planks with a pipe inside that's glued to the item that's moving, take a look at the examples groups in the menu bar, the push/pull piston has support, if you surround your object, you will have to make sure collisions are disabled.
also check to see if the physics pivot is really in the object center, snap (right stick click) works wonders for this.
-
Member
Re: Shooting the basketball & moving things into place
Right, sorted that last thing out, im slowly but surely getting better at all this.
My next thing, ive kinda got the hang of object position events, and ive made this part on my track raise in the air to the specific point (OPE, Linear curve, Interval trigger). However, as this part is a little bit into my track, before you get there, the event has already occured which kind of ruins the whole effect. Now ive tried instead of the interval trigger with a hit trigger but a soon as i go through it, rather than raising at a nice speed, it suddenly just goes straight to the specific height, rather than raising slowly.
Any other options im missing?
-
Senior Member
Re: Shooting the basketball & moving things into place
your probaly using curved datascources
you have to disable them so they don't start counting when the game start
just use a state event to turn them on when you want it
-
Senior Community Manager
Shooting the basketball & moving things into place
Hook your trigger to a splitter that enables the ope and data source.