Littlebear's Recent Forum Activity

  • dropmefiles.com.ua/en/aExB

    Hi. I was having coffee this morning and had a moment.

    I'm not sure I understand the task exactly, but I did this.

    In the example there are two layouts of different sizes and a sprite that we can drag and drop.

    After moving between layouts, the position of the sprite should change to the position from the last layout, taking into account the changed size of the layout.

    I just tried out the example, and this worked perfectly! Thank you so much this problem has been bothering me for months. : )

  • Hello! I'm newish to construct, but this is what I would do: have an object that is centered to your viewport spawn them on the start of the layout. That way you have their position the same every layout. I don't know if this is your issue but I hope it helps!

    Thank you for the fast reply. Sorry I forgot to mention this before, but the sprites are capable of moving to any area within the layout. My problem is how to translate the X, and Y locations of these sprites to new layouts of different sizes similar to what they were in the original layout.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi everyone. Forgive me if this is a simple answer. I'm struggling how to take a sprite's location, and place them in a layout of different size relative to their original positions in the 1st layout. Here's a visual aid that will explain what I mean.

  • Hi everyone. I'm trying to create a power up system like in vampire survivors, but having some trouble choosing a random power up different from the other item options, or how to create a list of items in an array. Any help is appreciated.

  • Naw. This is probably more what you’re after

    https://www.construct.net/en/tutorials/enlighten-games-dynamic-1213/normal-maps-5

    There was a more recent normal map effect, but I was didn’t look too hard. It’s made by user Everade.

    Oh my goodness I didn't even think of normal maps. O_O All this time I thought it could be a sprite's shape being altered. Thank you so much! : )

  • I found a post that could have the solution I've been searching for. R0J0hound Had a great idea for the flashlight in this example.

    https://www.construct.net/en/forum/construct-2/how-do-i-18/3d-looking-flashlight-room-86528

  • Hi everyone. I've been trying to solve this lighting effect for some time. When a light sprite appears on the ground how would you have it affect another sprite in a 3D way? Like in this example The truck is being illuminated at an angle different from the sprite on the ground. Any help is appreciated.

  • Whoops, I had no idea I was using the wrong one. Thanks for the advice. : ) Rojo3d is a little too difficult for me to understand how it works, but after a little bit of tinkering I was able to get the rotation to work with the triangle3D plugin.

  • Hi everyone. I'm a little bit stumped with this problem. I'm planning on combining 2 programs made by the amazingly talented R0J0hound . Using a 2D rotation, and R0J0 3D's engine.

    I'm wondering how to sync the 3D object's rotation with the 2D rotation?

    Here's the capx below. Any help is greatly appreciated.

    dropbox.com/s/n1y0wqfomlg50ut/3d_camera_help.capx

  • Oh, I think I found a way. I used array to record the movements. : )

  • Sorry, I don't have that behavior installed and those are too many events to sort though. The idea was to get you started but likely you'll need to extend it or fix it. What you're basically doing is making a platform behavior.

    Here's another more complete example in 2d. It's still rough, but should help show some ideas with how to implement it. Or how not to, it could be too rough. In general I don't think I'll be perfecting it so hopefully it's helpful in some way.

    https://www.dropbox.com/s/9kiu6a4gm896qkq/rough_event_base_platform.capx?dl=1

    Oh my goodness, thank you so much R0J0hound! It works perfectly now. I tried your example, and the platforms are just like how I imagined they would be. : )

  • The rough logic is to keep track of what block the player is standing on, then when that block is moved you’d move the player the same amount.

    As a simple rough example in 2d you could do this:

    Player overlaps platform at offset 0,1
    — set platform.x to platform.x+1
    — set player.x to player.x+1

    There are probably more precise ways to get what the player is standing on. That and you can move the platforms in more deluxe ways. For that you may just want to keep track of the offset the player is from the platform.

    Thank you, but I think I might be doing something wrong in the code. When I tried this I'm now stuck to the moving platform until I jump, and the z order wants to place mario behind the platform when turning in certain directions.

    Here's the capx.

    dropbox.com/s/77y3owssugkduqb/test%20isometric.capx

Littlebear's avatar

Littlebear

Member since 26 Sep, 2014

None one is following Littlebear yet!

Trophy Case

  • 10-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

12/44
How to earn trophies