Page 1 of 1

IE 9 crash when I click new topic.

PostPosted: Mon May 23, 2011 3:37 am
by Clokio
Just to let you know.

By the way hello community I am new, I am usualy making 3D game, but I am looking to learn more about 2D. I have a question. When I attach a script to a actor, is it executed every frame?

I am doing the Moon patrol tutorial and I din't figured how to scroll the screen to the right to add more objects (actors)

Thanks

Re: IE 9 crash when I click new topic.

PostPosted: Mon May 23, 2011 4:41 am
by skydereign
Welcome. To address your questions, it depends on the event. Scripts in the draw event will trigger each frame, as long as the actor exists. The keydown events, if set to repeat, will trigger every frame that they key is pressed. Out of vision event will trigger scripts every frame that the actor is out of vision, and so on. Most events though don't.

Do you mean scroll the screen in the editor? If so just click somewhere where there are no actors, and drag to the left. This should move you more to the right. If you meant get the view to move, the tutorial should have ways of doing that. Essentially increase the view's x value, for a relevant example, in its draw event. That way it happens every frame.