GameSalad

A problem with spawn actor (windows)

orenn27orenn27 Posts: 14Member
edited August 2016 in Help Wanted

Hi, I want to spawn an object randomly with an empty spawn actor, but the object goes down to the left corner of the screen.
my position: random(0, 1024) random(0, 768)
no value for direction. i am using windows.
can you help me? i downlouded gamesalad yesterday.

Comments

  • SocksSocks London, UK.Posts: 12,821Member

    Could you post a screenshot of your Spawn rule ?

  • orenn27orenn27 Posts: 14Member

    @Socks said:
    Could you post a screenshot of your Spawn rule ?

    how can i upload an image (jpg) here? the rule image

  • orenn27orenn27 Posts: 14Member

    i will try to write the rule here.

    timer: every 1 seconds (run to comletion is on)
    the timer is together with this spawn rule: spawn actor: actor2 , palce: in front of actor.
    in the direction: 0 relative to: actor
    from position: random(0, 1024) random(0, 768) relative to : scene

  • SocksSocks London, UK.Posts: 12,821Member

    @orenn27 said:

    @Socks said:
    Could you post a screenshot of your Spawn rule ?

    how can i upload an image (jpg) here? the rule image

    Upload the image to an image hosting website and post the link here.

  • orenn27orenn27 Posts: 14Member
    edited August 2016

    @Socks said:

    @orenn27 said:

    @Socks said:
    Could you post a screenshot of your Spawn rule ?

    how can i upload an image (jpg) here? the rule image

    Upload the image to an image hosting website and post the link here.

    Thanks.
    https://postimg.org/image/erq56izjb/

  • SocksSocks London, UK.Posts: 12,821Member
    edited August 2016

    @orenn27 said:

    @Socks said:

    @orenn27 said:

    @Socks said:
    Could you post a screenshot of your Spawn rule ?

    how can i upload an image (jpg) here? the rule image

    Upload the image to an image hosting website and post the link here.

    Thanks.
    https://postimg.org/image/erq56izjb/

    Your rule looks absolutely fine . . . ?

    The only thing I can think of is that you typed the expression directly into the expression field without first clicking on the 'e' button ?

  • orenn27orenn27 Posts: 14Member
    edited August 2016

    @Socks said:

    @orenn27 said:

    @Socks said:

    @orenn27 said:

    @Socks said:
    Could you post a screenshot of your Spawn rule ?

    how can i upload an image (jpg) here? the rule image

    Upload the image to an image hosting website and post the link here.

    Thanks.
    https://postimg.org/image/erq56izjb/

    Your rule looks absolutely fine . . . ?

    The only thing I can think of is that you typed the expression directly into the expression field without first clicking on the 'e' button ?

    Thanks a lot! now it works. but only one thing, some of the objects not seeing in the screen after 1 second. i think its because of the tablet size values are to big for the screen. will it work fine on iphone, seeing the missing objests?

  • SocksSocks London, UK.Posts: 12,821Member

    @orenn27 said:
    Thanks a lot! now it works. but only one thing, some of the objects not seeing in the screen after 1 second. i think its because of the tablet size values are to big for the screen. will it work fine on iphone, seeing the missing objests?

    How big is your scene ? (what project size did you start with ?)

  • orenn27orenn27 Posts: 14Member

    @Socks said:

    @orenn27 said:
    Thanks a lot! now it works. but only one thing, some of the objects not seeing in the screen after 1 second. i think its because of the tablet size values are to big for the screen. will it work fine on iphone, seeing the missing objests?

    How big is your scene ? (what project size did you start with ?)

    iphone 5 landscape

  • SocksSocks London, UK.Posts: 12,821Member
    edited August 2016

    @orenn27 said:
    iphone 5 landscape

    Then you are spawning actors outside the scene, an iPhone 5 project is 568 x 320 pixels, your random value range spawns actors in an area of 1024 x 768 pixels.

  • orenn27orenn27 Posts: 14Member

    now its fine! Thanks a lot for your help Socks!

Sign In or Register to comment.