Jump to content
  • 0

The X position is in the middle but why not the Y position?


GTFoxN6Y

Question

 

I was trying to make a hyper combo Finnish background go in the middle, but when the player jumps up, the background STILL on the ground and the Y position IS not in the middle completely.

 

I tried to use this code:

[State 0, PosAdd]

type = PosAdd

trigger1 = 1

x = 0

y = 0

;ignorehitpause = 1

 

but that`s don`t work. Can you show me how to force the Y position in the middle?

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 1

0 on the Y axis is the floor.
PosAdd adds to the current position by the amount(s) specified. A PosAdd with 0 for both its X and Y parameters does nothing.

 

Why not simply make the effect an Explod? Explods are positioned relative to the screen, so you can set the Y pos value to gameheight*0.5 and give it a postype of back.

Link to comment
Share on other sites

  • 0

From the looks of your post, you're trying to force a background to stay in one spot, correct? If so, there's no need for a PosAdd. Instead, you should code your background as an Explod with the bindtime set to -1.

Link to comment
Share on other sites

  • 0
1 hour ago, Nodog said:

From the looks of your post, you're trying to force a background to stay in one spot, correct? If so, there's no need for a PosAdd. Instead, you should code your background as an Explod with the bindtime set to -1.

Okay thanks!
 

Link to comment
Share on other sites

  • 0

I was trying to make a hyper combo ready helper go in the middle, but when the player jumps up, the background STILL on the ground and not in the middle completely:


Like this:

ezgif-2-0f7c5e70508f.gif

 

I tried this code:
[State 0, PosAdd]
type = PosAdd
trigger1 = 1
x = 0
y = 0
;ignorehitpause = 1

but that`s don`t work. Can you show me how to put the Y position in the middle just like the X position is in the middle?

Link to comment
Share on other sites

  • 0
2 hours ago, PlasmoidThunder said:

0 on the Y axis is the floor.
PosAdd adds to the current position by the amount(s) specified. A PosAdd with 0 for both its X and Y parameters does nothing.

 

Why not simply make the effect an Explod? Explods are positioned relative to the screen, so you can set the Y pos value to gameheight*0.5 and give it a postype of back.

Hey it Worked!!😄  Thanks man!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...