Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Can anyone help with this!

so i have added pushable blocks using a cutdown version of the player code

 .... however this script/function "update_slope_object(o_player, 0, 32)" seems to be affecting the player and the block whenever i go near a ramp with a block.

is it because of this line in the function? 

    position.z_height = lerp(_z1, _z2, _ds)

and both the player and block are using "position" ?

simply trying _player.position.z_height = lerp(_z1, _z2, _ds) just breaks most of the collisions.

Frothzon Help!
(2 edits)

are you trying to push a block up a ramp? "_player.position.z_height = lerp(_z1, _z2, _ds)" is going to change the collission cross section of the player. If you want I can extend the tutorial this weekend for pushable blocks. Just let me know what you are looking for and I can try to address it specifically.

If you would extend the tutorial that would be totally awesome :D

I'm looking at adding the push/pull blocks so that the player can push them off ledges and fill gaps in walls to reach new areas. 

And possibly build a path of them to reach a small island in the water. 

(2 edits)

I dont know if this helps at all?

1.25 onwards i tried the fix of _player.position.z_height but this only seems to make the collisions break.

At
2.29 i am trying to show that the player and the block have new Positions so they should not be effected by each other ? i wonder if you can replicate this at all on your end ?

I see, I will add in another tutorial for this. I will need to change the collision system to make things like this easier to implement.