How change This:

mrpacogpmrpacogp Member Posts: 400
edited January 2013 in Working with GS (Mac)
Lolas photo Lolas_zpsb586cad7.png

I can't find a behavior to modify this.

I want to see this value, because with iphone mode the game works fantastic, but when i change to iPad mode and use resize technique from here:
http://forums.gamesalad.com/discussion/32594/resizing-to-ipad-technique/p1
Then when you are near the end of the screen you are destroyed, maybe because your scene size is increased but that "game.device.size.width" not....

Comments

  • VoidedSkyVoidedSky Member Posts: 1,095
    That is the actual device width and height, what you can change is the scene width and height under the tab "scene" and "attributes". That will be the height and width of the the actual scenes of the game. You will need to drag an actor to the scene, and then unlock the actor prototype, and then you can access scene attributes directly from the actor. What are you trying to do? Change the screen size based on what device the game is being played on? Such as an iPhone 5 and an iPhone 4?

    ~Josh
  • mrpacogpmrpacogp Member Posts: 400
    edited January 2013
    I can switch perfectly between i4 and i5, the problem is when jump to ipad.
    I have set my camera to move between 240,scene size width-240 (240 maybe is size screen/2)
    That works fine, but on ipad mode, when the camera is near scene size width - (screen size/2) the camera is destroyed.
    I have tested and the game destroy all actors near this position, then i think the value i have put on top (i dont know how to find it on scene to use display text and see value) that value maybe don't is increase when change to iPad ...

    Let me do a blank project and see that
  • VoidedSkyVoidedSky Member Posts: 1,095
    So, you are trying to make one app that works on all three devices? (Universal build?

    ~Josh
  • mrpacogpmrpacogp Member Posts: 400
    At this time is working, the unic problem is the camera... let me show you a project
  • VoidedSkyVoidedSky Member Posts: 1,095
    If you want, you can just email it to me if you don't want to publish it locally.

    apps (at) voidedsky (dot) com


    ~Josh
  • mrpacogpmrpacogp Member Posts: 400
    Thank you very much, i think i just have found the solution using snap to similar on freecoverflow!
    Let me 10 minuts to test it
  • VoidedSkyVoidedSky Member Posts: 1,095
  • mrpacogpmrpacogp Member Posts: 400
    edited January 2013
    Stills without working.
    The problem dont is on camera.
    When i resize the scenes, all near the end of my scene is destroyed before resize...


    How can i see and modify the values on image first post=?
  • VoidedSkyVoidedSky Member Posts: 1,095
    edited January 2013
    To access scene attributes, you need to drag an actor into your scene. Then, double click on the actor in the scene. The actor will open, and then click the lock to unlock the actor. You will then have access to all of the scene variables in the regular attribute browser.

    ~Josh
  • mrpacogpmrpacogp Member Posts: 400
    edited January 2013
    Yes i know, but i can't access to this game.devices.screen.size, i dont know how to see that value on scene!!

    I have put alot of "display text" for see what is the problem
    Scene size = 2048
    Game size= 1024
    When actor is > 1500 is destroyed! (project resized from 480 with gamesx style)

    Testing, i have change all, scene size to 4000 and game size and all, but stills destroying all with posx>1500

    Ok, i have found the problem.
    The scene not is resize it. You put a scene display text and display 2048, but stills destroying all near 1500x
    If you go to scene size and change to 2048, then only is destroyed when you come to 2500x
    Maybe, resize techniques works for almost of things, but dont resize the real value of scene size, or maybe, resize it , but dont resize the margin before to destroy an actor.
    What can we do to force this behavior?
  • VoidedSkyVoidedSky Member Posts: 1,095
    So, you have actors destroyed after their x value is more than 1500, correct? What if you made a rule that said "if scene size is greater than 2000, than change the value at which actors are destroyed to 2500.

    I might not be following ur problem...


    ~Josh
  • mrpacogpmrpacogp Member Posts: 400
    Apologyze about my english.
    Let me try to explain me better:
    1.- Create a project, scene size width = device screen*2, like iPhone 4, then scene is 960
    2.- Create actor, can move just to 960 and more w/o problems, you have to move +100 size scene to be destroyed.
    3.- Create rules for resize to iphone 5 or ipad 5, all works fine, included size and position of all actors.
    4.- Move to one scene, if you are on ipad mode, display text show than you are on scene size 2048, but when actor moves to x+1500 is destroyed.
    5.- Save your project, go to 1 scene and change project to ipad mode, go to any scene and change scene size to device screen*2, delete rules about to resize scene, come to one and scene size is 2048, and your actor can move w/o problems.

    The problem i have found, is when you resize a project, or use rules to resize it, like :
    http://forums.gamesalad.com/discussion/32594/resizing-to-ipad-technique/p1
    The scene is resized, but the limits for move dont.

    The first screenshot show the limits of scene, in this thread at top.

    Maybe, when you resize the scene, you need to reload it.
  • VoidedSkyVoidedSky Member Posts: 1,095
    Instead of using "scene size" + 1500, try using "device size" + 1500.

    Let me know if that works.

    ~Josh
  • mrpacogpmrpacogp Member Posts: 400
    Actor use move to dirección or motion linearx
    When it reaches position x about 1500 is destroyed
    I use display text for See scene size and sye 2048 but When any actor move to 1500 or higher is dedtroyed
  • VoidedSkyVoidedSky Member Posts: 1,095
    Ok. You mentioned something about reloading an attribute, have you tried something like "when scene size changes, do....."

    ~Josh
Sign In or Register to comment.