YesNoOk
avatar

Pos X + CameraPos x = P1 but need some more? (Read 560 times)

Started by -Extasis-, September 11, 2013, 07:43:17 pm
Share this topic:
Pos X + CameraPos x = P1 but need some more?
#1  September 11, 2013, 07:43:17 pm
  • **
  • Tu tiempo paso, tu ya no brilla'♪♫
    • Mexico
    • Manuel.is.back.13@hotmail.com
I'm working for some time and my head hurts, I'm a little annoyed
if I go to bed and wake up in a while, maybe it resolved, but I do not want to think

[State 801,             Helper]
type                     = Helper
trigger1                = time = 18
helpertype             = normal
name                    = "Cuervos"
ID                         = 802
stateno                 = 802
pos                       = (Pos x - camerapos x)+4,-30
ownpal                  = 1

español

en el helper no hay nada
al acercarse sin modificar el valor camerapos x sigue en 0, a un lado cualquier lado, el helper no aparece en el player, aparece con el valor de la pos que va ahi como de -91 pienso yo que al sumarse la camerapos alcanza la posicion exacta, pero como no tiene valor por que no se ha movido la camara, queda ahi, la unica que se me ocurre es un ifelse en el valor del pos x, restandole pos x-pos x

pero no creo que sea la opcion mas apropiada, que piensan los expertos? especialmente el veterano de cyanide
 
el zoom no esta activado por cierto
ingles

helper is empy
when approaching the wall without moving the screen
on one side, appears with the value of Pos X, but appears further back than normal, moving the comrade comes out perfect, but without moving the camera does not

I think it's because when the camerapos x has the largest value addition and post gives the exact result,

the only thing I can think of is a ifelse subtracting pos x - pos x

I do not think that is the best option, they think veterans?
its 1.1
zoom no active


yo confio en que vuelvas a ser mi princesa ♥ ♪♫
Last Edit: September 11, 2013, 07:54:40 pm by -Extasis-
Re: Pos X + CameraPos x = P1 but need some more?
#2  September 11, 2013, 08:29:13 pm
  • *****
  • Mega Klinklang confirmed
    • USA
    • ricepigeon.webs.com
Sounds to me like its positioning itself one way when facing one direction and another way when facing another. You may have to multiply the X position offset by the value of facing (instead of +4, change that to +4*facing)

<<-- Updated 09/14/14

You limit yourself so badly when you try to avoid variables. When you get over your fear of the "complexity" of variables, you will find yourself in a better place: A beautiful world where coding is actually fun.
Re: Pos X + CameraPos x = P1 but need some more?
New #3  September 11, 2013, 08:51:06 pm
  • **
  • Tu tiempo paso, tu ya no brilla'♪♫
    • Mexico
    • Manuel.is.back.13@hotmail.com
Sounds to me like its positioning itself one way when facing one direction and another way when facing another. You may have to multiply the X position offset by the value of facing (instead of +4, change that to +4*facing)

not fix

[State 801,             Helper]
type                    = Helper
trigger1                = time = 18
helpertype              = normal
name                    = "Cuervos"
ID                      = 802
stateno                 = 802
pos                     = ((Pos x - camerapos x)+4*facing),-37
ownpal                  = 1

that alone would change the value 91 to positive, and would be the same problem, only that would appear front

omg i really stupid!!!

postype = p1

space = stage
pos = Pos X + CameraPos X, Pos Y
facing = facing

space = space (string)

    Specifies the coordinate space in which the explod is to be created. Valid values for space are:

    screen
        This coordinate space maps to the screen. The upper-left corner is 0,0 and the lower-right corner is ScreenWidth,ScreenHeight (refer to the triggers with these names). Explods created in screen space are not affected by camera movement or zoom.
    stage
        This coordinate space maps to the stage space in which players reside. 0,0 is the center of the stage at ground level. Explods created in screen space are affected by camera movement and zoom. This is the default.


i try but i not work :c
yo confio en que vuelvas a ser mi princesa ♥ ♪♫
Last Edit: September 12, 2013, 12:02:13 am by -Extasis-