TheGameCreators / GameGuruRepo

The GameGuru Repository For Community Collaboration
http://www.game-guru.com
137 stars 56 forks source link

GGMAX Enhancement - Script Request: vehicle drive by or loop (straight line) #5822

Open mike123yy opened 1 week ago

mike123yy commented 1 week ago

1

So what the script would do is just make a vehicle drive by your scene and either repeat the sequence, destroy, or stop. it wouldn't be meant to make traffic drive around in a loop or anything, for example if you have a level that takes place in an apartment with a street down below and the field of view is blocked on both sides you could have cars drive by in a straight line to make it look like there is traffic outside. If it were able to repeat you could add the script to several cars and line them up at different distances and it would give the illusion that cars keep driving by. Or you could make it a single car that is triggerable that drives by as an event. it would also work for a military game to have a plane fly by triggered by a trigger zone or even a boat driving by on the lake. the platform script is almost able to accomplish making a car drive by but if you don't set the car distance to really far away it will come back in reverse and repeat itself. it also seems tied to the frame rate so it'll move at different speeds depending on the frames per second you're getting. Also if you were able to make the script make the vehicle move and then stop and not destroy at the end you could use it for a car crash into a tree or a similar event. it would have a whole bunch of different uses for a lot of scenarios. currently the way to do this is to animate the car and attach it to a trigger zone with a script similar to jump scare that would allow the car to show for a certain amount of time and then disappear. this method works but if you try to attach lights to the vehicle the lights don't know to move with the animation and so that becomes impossible.