I'm fairly new to Construct 2 , but i'm not completely begginer . My question is how to make car move from point A to point B or even randomly ? Thought question i know , but it will make my life so much easier if someone could help me


Gmoney wrote:I have never created isometric games, but I came up with two ways to possibly move an object on its own.
1. Sprite animation
Basically, there are two animation sets; 'Default' and 'Driving' in this capx example.
When a user clicks anywhere on the screen, the 'Driving' animation will play.
You'll notice the animation is choppy, because the animation contains 10 PNG frames.
https://www.dropbox.com/s/raam5rd0dgf5g ... .capx?dl=0
2. Rexrainbow's MoveTo behavior
You need to install Rexrainbow's behavior in order to open this example file.
https://www.dropbox.com/s/nv5db4nqzdbzb ... .capx?dl=0
You can download the behavior from by visiting this page.
behavior-moveto_t63156
To learn more about how to install behaviors, please visit this page.
how-to-install-plugins-and-behaviors_t63985
You'll notice the animation is moving smoothly.
And.. finally, this is how other people have found ways to make their players move around in an isometric environment.
Check them out.![]()
how-do-i-move-object-on-isometric-angle-bullet-custom_t127913
https://www.scirra.com/tutorials/5010/p ... tric-games
Gmoney wrote:You're most welcome, Djomla.![]()
Yes, it's possible to arrange them drive around on their own using pre-made paths, randomly.
To do that, it would be better to use Rexrainbow's rex_spline behavior that can be found on the following link.
behavior-rex-spline_t178563
Here's an example of an automated path moving of two cars in game.
https://www.dropbox.com/s/9w6hbld35mk3e ... .capx?dl=0
And.. (ahem..)
I thought finding a method of making things to occur randomly would be fairly simple, but it was found to be embarrassingly difficult.
I have tried to make an example for you for that portion, but failed to do so..
I don't know why it's not working.
Here's an example capx file I got stuck at.
https://www.dropbox.com/s/43opfvica4ult ... .capx?dl=0
Basically there were 3 things.
1. One car.
2. 3 waypoints (Waypoint1, Waypoint2 and Waypoint3).
3. I've set a variable to randomly choose one of numbers linked to a certain path-generation-and-function-call, but it's not working.
I've worked on this for more than 2 hours and ended up giving it up.
If anyone else can take a look and teach us how to do this, I would greatly appreciate it.
Thank you.
By the way, to make the game look good, the car needs to be rotated accordingly, when it reaches certain positions on the map, that is.
Djomla wrote:I am so suprised and grateful on how much effort you put in every reply! I can't describe how much I'm thankfull at this moment. I'll check your work and i'll try to see if i can somehow fix it (even if i know it is impossible to do this on my skill and knowladge level) . If i find solution i'll post it here for sure !
Again thanks so much !
Djomla wrote:This is the result i was looking for, thanks for the 10th time.I think i can understand most of your event sheet but some parts of it are locked because i have free edition (I need to buy full version ASAP )
Who is online |
Users browsing this forum: Doctordien and 1 guest |