From MMF2 to Construct / A few questions

This forum is currently in read-only mode.
From the Asset Store
Casino? money? who knows? but the target is the same!
  • Hey there!

    I've been a user of Clickteam products for a loooong time, but I'm thinking of switching over to Construct (I hear this is common trend for MMF users). It seems to be very similar to MMF2, dare I say a spin-off, but much, much nicer

    Anyway, the transition is going pretty smooth so far but I've got a few questions.

    1) Resizing the window. I used this code to adjust my window size in MMF:

    -Set width of app window to WinXSize( "Window Control" )-ClientWidth( "Window Control" )+Frame Width*n -Set height of app window to WinYSize( "Window Control" )-ClientHeight( "Window Control" )+Frame Height*n

    Works great in MMF, but is totally inaccurate in Construct. The window ends up very tall and slim. Also, I'm not sure how to position the window in the exact center of the screen after a resize. In MMF you can simply select top left, bottom right, center, etc.

    2) Fullscreen. My window size is 256x224, but Construct prevents fullscreen mode with such a small window size. Why is this? How do I get around this? In MMF you can have a window of literally any size and you can still go fullscreen.

    3)Animation Directions. In MMF you get 32 directions per active object. This is great for having a player that can aim in multiple directions or have different "modes" while not losing the current frame value. An example would be "Direction is 0 - Player is facing right and NOT holding weapon" "Direction is 1 - Player is facing right and IS holding a weapon". How would I do this in Construct? Sub-animations?

    There were a few other things I wanted to ask about but can't think of at the moment XD; This should do for now. Thanks for any help!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 1)

    Resize window

    Objects needed: Window

    -> Window: Set size to (320+Window.Width-DisplayWidth, 240+Window.Height-DisplayHeight)[/code:dgxwbn3d]
    replace 320 and 240 to whatever size you want.
    
    If the Window properties option "Caption" is unchecked then you can simplify it to:
    code]-> Window: Set size to (320, 240)

    Center window

    Objects needed: Window, SysInfo

    -

    > Window: Set position to ((SysInfo.GetScreenWidth - Window.Width)/2, (SysInfo.GetScreenHeight - Window.Height)/2)[/code:dgxwbn3d]
    
    2)
    [b]Alternative Fullscreen[/b]
    Objects needed: Window
    Do this: uncheck the window properties option "Caption"
    and use this event:
    [code:dgxwbn3d]+ System: Start of layout
    -> Window: Maximize window
    [/code:dgxwbn3d]
    
    3)
    Construct is not limited to 32 directions, you can have as many directions as you like.
    Click on a sprite and goto the animation tab.
    By default there is only 1 angle: "Angle: 0 (Right)"
    right click on that angle and select "Add new angle"
    You can select an angle from the dropdown or just type in whatever angle you want (repeat for as many angles as you need).
    For 32 direction that would be an angle every 11.25 degrees.
    At runtime the sprite will automatically lock to the closest animation angle.
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)