YesNoOk
avatar

Problems with ScreenBound (Read 334 times)

Started by Odb718, November 09, 2014, 08:25:38 am
Share this topic:
Problems with ScreenBound
#1  November 09, 2014, 08:25:38 am
  • ***
    • USA
It seems like

[state 3767, SB]
type = screenbound
trigger1 = time >= 0
value = 1
persistent = 1
movecamera = 0,0

wont lock the screen into position. I send both P1 and P2 up and off the screen, reset both positions to under the screen, sending them both up into frame.
P1 is locked near the bottom of the screen when it comes back in, and P2 continues up.
It follows P2. P1's Y Position on the screen is moved lower on the display. Not only that but P1 does a fake attack which snaps P2 into position using targetbind. The screen SNAPS down to view this happen.

What do I have wrong with my screenbound???

     Posted: November 11, 2014, 08:08:41 am
I'm becoming extremely frustrated with this problem. I've made a small video of what I've got.
I'm reworking Ibuki's SFIV Ultra combo I made. Tightening it up, making it look better, and work better for 2v2.



In the video you see I use different values... I'm trying to find SOMETHING that works...

I would think THIS

[state 3767, SB]
type = screenbound
trigger1 = 1
value = 0
persistent = 1
movecamera = 1,0
ignorehitpause = 1

Would be what I want by reading THIS 
State Controller: ScreenBound
Specifies whether or not the player's movement should be constrained to the screen or not. Also determines whether the camera should move to follow the player or not. The results of this controller are valid for 1 tick.

Required parameters:     none
Optional parameters:
    value = bound_flag (boolean)
        If bound_flag is 0, the player will be allowed to move off the screen. If 1, the player is constraing to the screen. Defaults to 0 if omitted.
    movecamera = move_x_flag, move_y_flag (boolean, boolean)
        If 1, specifies that camera should pan to follow the player in the x direction and in the y direction, respectively. Defaults to 0 in both instances if omitted.


As you can see in the video the screen does what it wants. Is there some other type of controller that would make screenbound not work properly? I'm pretty sure I've tried every combination of values for the screenbound. 


           
Re: Problems with ScreenBound
#2  November 13, 2014, 04:00:51 pm
  • **
    • USA
    • altoiddealer@gmail.com
For sh*ts n giggles...
-Have you tried adding a redundant Screenbound controller to your p2 custom state?
-Have you tried making a Screenbound controller in State -2 that is active when your character and P2 are within those states?

I'm sure you have, but also try omitting everything (default settings).

[State -2]
type = Screenbound
trigger1 = StateNo = 3767
trigger2 = P2StateNo = xxxx
Re: Problems with ScreenBound
#3  November 13, 2014, 04:20:17 pm
  • ******
  • I'm a fuffy.
    • USA
    • www.trinitymugen.net
You need to have screenbound in P2's custom state.
Re: Problems with ScreenBound
#4  November 13, 2014, 04:40:49 pm
  • ****
  • #duckhuntkirby
    • USA
    • DJHANNIBALROYCE@gmail.com
    • Skype - DJHANNIBALROYCEUSA
    • sites.google.com/site/djhrmugen/
this is good to know...always had issues with this.
SKYPE: DJHANNIBALROYCEUSA
TWITTER: https://twitter.com/DJHANNIBALROYCE
SOUNDCLOUD:https://soundcloud.com/djhannibalroyce
Re: Problems with ScreenBound
#5  November 13, 2014, 05:13:38 pm
  • **
    • USA
    • altoiddealer@gmail.com
I actually had a minor issue with this, too, which I decided to put off and solve later... so now I can go ahead and fix it in my char as well lol
Re: Problems with ScreenBound
#6  November 13, 2014, 10:33:15 pm
  • ***
    • USA
Seriously Jesuszilla?? I thought about doing this like 9 times and was thinking it should just work with P1...

What's worse is, I kept reworking the Pos Y to make what I have look good. I'll have to completely redo it 1 last time.
Kinda stinks you can use regular hit reactions with screenbound.

     Posted: November 15, 2014, 12:36:58 pm
Ok, adding the screenbound to P2 is working... kinda...
I try to get it to allow P1 to be followed horizontally and it doesnt change.
When I change it so P1 isnt allowed out of the frame, it stops P1 from going out of the frame. So I have no clue why
movecamera = 1,0
wont track Ibuki's Pos X.

I've switched P2's corresponding screenbound and still get no change.

Is there a way to list all of the combinations of screenbound????
Like say you use
movecamera = 1,0 for P1 and
movecamera = 1,1 for P2. What would actually happen?
What if you used
value = 0 for P1 and
value = 1 for P2?
Screenbound just seems like it doesnt work the way it's saying it should work.
           
Re: Problems with ScreenBound
#7  November 22, 2014, 02:32:37 am
  • *
  • GEE GEE
this is a little bit of an unconventional solution but, you could probably have a helper perform the visuals of the move, make yourself invisible and invulnerable (your screenbound = 1/ p2 = 0) to lock the screen in place.

the camera will follow you because you have screenbound = 1 while P2 has screenbound = 0. so you can lock the screen wherever your P1 exists. additionally, Since P1's position controls the camera, you can move P1 (and the camera with it) wherever you want (for future moves).

it's going to require a lot of restructuring though...
In the end, it's not gonna matter how many breaths you took,
but how many moments took your breath away