playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker News
»
General Discussion
(Moderator:
600
) »
Need to know how to build pulling and pushing objects for puzzle game.
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Need to know how to build pulling and pushing objects for puzzle game. (Read 1367 times)
Janitha Bimsara
Playmaker Newbie
Posts: 2
Need to know how to build pulling and pushing objects for puzzle game.
«
on:
May 05, 2022, 03:16:00 AM »
Hi, I'm new to playmaker and I’m developing a puzzle game(3d platformer). I want to make, when player go near to cube and press key, player can push object forward and backward. Can anyone give me an idea of how to do this.?
Logged
cel
Full Member
Posts: 132
Re: Need to know how to build pulling and pushing objects for puzzle game.
«
Reply #1 on:
May 05, 2022, 08:45:45 AM »
you could make the cube a child of the player and restrict the player movement to forward and back. So on press key, attach cube to player and restrict the players movement.
Another way is to apply a force on the cube... example player enters trigger (on the cube) if player presses forward apply force on the z positive axis, if player presses back apply force on the z negative axis (or whatever axis is used for forward)
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker News
»
General Discussion
(Moderator:
600
) »
Need to know how to build pulling and pushing objects for puzzle game.