New Machinery - Tractor and directional cloud machine

in Programming & Dev11 months ago

pg.png

Hello there,

These days I changed the pace on working on the plants and took a look at the machinery of wich there was only the cloud machine creating only clouds in one direction.

The new Cloudmachine now can be interacted with other then feeding it the fruits and can change the direction of the clouds it creates.

The other piece is the tractor that still is unfinished as it has to be seen what can it do(I was thinking of multiple functions like cutting, seeding, watering and other options) for now it is working. The one in the video has some diffenrent variable as what shown.

creat.png

Here's the create event that set the variables, plus work on the sprite sheet for wich I will have to do some more work for the look of the tractor.

ste1.png

The first part of the Step Event regards the movement of the Tractor checking if it has fuel and starting the engine with hsp and changing the image_speed velocity so that the frames of the sprite start rolling.

Then it checks for collision with other object vertically and horizontally.

step2.png

The second part regards the interaction with the Oil Fruit and the Pomo fruit.
The Oil fruit increases the fuel storege after is consumed while the Pomo makes the same thing that does with the player and make even a tractor jump!

Here at the video you can check for the results.

if you want to check out the game you can do here though these new updates are still not implemented.

Sort:  

Thanks for your contribution to the STEMsocial community. Feel free to join us on discord to get to know the rest of us!

Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).

You may also include @stemsocial as a beneficiary of the rewards of this post to get a stronger support. 
 

i love the plants growing when water hits them.
do you just make the collision event with the water and the plant....
increase the plant object's image index by 1?

Yep that's about it for the base mechanics. image_speed is set to 0 in the create event and then modified when hit by water.
Though I'm looking to do a bit more in depth post about the cycle of seed>grass>seed