Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - adrianocapcom

Pages: 1
1
Hello, I'm a new Stencyl users and so far I'm loving the platform.
I feel that Stencyl allows me to create things I've dreamt of for my whole life (grew up in the 80's and love 2D games).

I was working on a couple of game prototypes and I'm often encountering the same problem, related to actors and sounds.
Some of them don't reload after reloading scene, or switching to the same scene.
ie: Main Scene, after death, reloads and doesn't spawn a certain enemy actor which should appear every 3 sec (when created).

Here how the behavior looks like.

Code: [Select]
    /* ======================== When Creating ========================= */
        createRecycledActor(getActorType(13), 543, 0, Script.MIDDLE);
        createRecycledActor(getActorType(7), 543, 0, Script.MIDDLE);
        runPeriodically(1000 * 3, function(timeTask:TimedTask):Void
        {
            createRecycledActor(getActorType(13), 543, 0, Script.MIDDLE);
            createRecycledActor(getActorType(7), 543, 0, Script.MIDDLE);
        }, null);
    }

I don't know what I'm doing wrong, but this is becoming frustrating and I don't want to give up.

Any help?
I'd love to be able to chat with someone and if possible schedule a one on one lesson. Anyone in the NYC area?
I'd love to learn more.

Thanks.
A

Pages: 1