Why doesn't this work?

I Was trying to make a level creator with tables today but i couldn't get it to work. The idea is the walls of the game are 8x8 which means the screen can have a max of 40 vertical and 71 horizontal. and I'm trying to compare the table with 40 rows and 71 columns to see if the table integer = 0 and if its 0 to destroy the actor. Please help I can't figure out whats wrong. here's the file https://dl.dropboxusercontent.com/u/26048107/no work.zip

Comments

  • GS_MasterGS_Master Member Posts: 159
    It might be confusing without the file and thanks in advance - GS Master
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited January 2014
    Okay, so we're talking about iPhone Landscape (320 x 568). I see where those numbers come from.

    You're using replicate. In my experience, replicate is ONLY useful for visual copies of an actor. The replicated copies do not actually run any rules. I wish they could.

    What you'll need to do is either (a) place all 2840 actors on the scene -- ugh -- or better yet (b) use one or more spawners to spawn the actors. If it were me, I'd use recursive spawners (spawner actors that move over 8 pixels, spawn themselves, and then destroy themselves) to achieve this.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    You can see what I mean by looking at this much more simple demo.
  • GS_MasterGS_Master Member Posts: 159
    Thank you.
  • GS_MasterGS_Master Member Posts: 159
    Spawning causes so much lag though :/
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Spawning causes so much lag though :/
    Until there's grid positioning in Creator, that's your only choice. And really, even with snap-to-grid, you'd still want some sort of auto-layout tool which doesn't currently exist. Spawning is your only -- and laggy -- option, I'm afraid.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited January 2014
    Granted it's slow (50 seconds on an iPhone 5) but if you employed some of the techniques for hyperlooping or fast looping, you could probably get it down to under 10 seconds and then throw a menu screen in front of it while it loads. That wouldn't be too bad for 2840 actors. ;)
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    30 seconds.
  • SocksSocks London, UK.Member Posts: 12,822
    @tatiang
    Granted it's slow (50 seconds on an iPhone 5) but if you employed some of the techniques for hyperlooping or fast looping, you could probably get it down to under 10 seconds and then throw a menu screen in front of it while it loads. That wouldn't be too bad for 2840 actors. ;)
    Yep, good call, couldn't get it any lower than 10 seconds.

    Link: https://www.mediafire.com/?vl3z5c18cdw8e4o


  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Or about 10 seconds if you use 16x16 actors with a Fast For Loop.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Yep, good call, couldn't get it any lower than 10 seconds.

    Link: https://www.mediafire.com/?vl3z5c18cdw8e4o
    @Socks But on an iPhone 5 in GS Viewer, it takes > 40 seconds to complete. :(
  • SocksSocks London, UK.Member Posts: 12,822
    Yep, good call, couldn't get it any lower than 10 seconds.

    Link: https://www.mediafire.com/?vl3z5c18cdw8e4o
    @Socks But on an iPhone 5 in GS Viewer, it takes > 40 seconds to complete. :(

    Yikes !

    8-X
  • GS_MasterGS_Master Member Posts: 159
    Thank You!!
Sign In or Register to comment.