New answers tagged platformer
Lets break this down into a few cases while only considering movement in a single horizontal direct ion. Case 1, the user presses and holds the horizontal movement key. In this case our movement is taken by adding the vector V to the objects position. Case 2, the user releases the horizontal movement key. In this case our movement varies with respect ...
You should definitely do this in the CollisionManager class. However, your question seems to allude to something inhibiting you from doing this, although I'm not sure what. If you're worried about good code design, then it's fine to use Get and Set methods to retrieve and set the positions you need when detecting and resolving collisions. This doesn't ...
The ScrollTo behaviour only moves the camera to the centre of your object. The Zoom Level of a layout can be changed via the Set Layout Scale System parameter. Example: Image is a screenshot of Camera Zoom Tutorial | "Construct 2"
It looks like your bounding box is too large for your sprite, try making sure that the sprite's feet touch the bottom of the bounding box in Spriter. EDIT: It turns out can do it Contruct 2 itself, just double click on the part of the sprite that dosent touch the ground to open the sprite editor. Then click on crop and you're good to go!
By default AddForce() is applied over time, not in an instant (which is what you want). You can change that though by using the second parameter, such as... AddForce(Vector3.up * jumpSpeed, ForceMode.Impulse) Another way that is probably more common, is to just set the velocity instead. This doesn't quite interact with the physics in the same way though, ...
Top 50 recent answers are included