Page 1 of 1

Two simple questions

PostPosted: Tue Aug 04, 2009 8:43 am
by adminDUM
Hello ged-community!

I started to use game editor few days ago. I playing with functions and editing actors and so on. That why I got two questions:

1.) In the documentation I did not found an answer to use hotkeys/shortcuts for the game editor. Where I can find them?

2.) My last question deals about the creation of actors. I created an actor and assign them an event. By clicking the mouse at the actor an other actor should be drawn in the center of the game window. But nothing happens if I click the actor. I searched a couples of moments for a draw-event but I did not find such event in combination with Mouse pressed.

Sorry for my bad english ...

Greetings from germany
Ulf

Re: Two simple questions

PostPosted: Tue Aug 04, 2009 9:29 am
by skydereign
Okay, first there are no hotkeys in gameEditor, yet. There might be in the new interface, but that won't be ready for a while. For your second question, I am not sure what you tried, but maybe this is what you meant. On mousedown, you want to have an actor appear in the center of the screen. To do this, you need to create an actor within the stage, more specifically the view.

firstActor ->MouseButtonDown(left) -> Script Editor
Code: Select all
CreateActor("actorName", "icon", "(none)", "(none)", view.x+view.width*0.5, view.y+view.height*0.5);


Instead of copying this into your script editor, click on the [variables/functions] button near the bottom of the script editor window. Then click on CreateActor, and it will prompt you with the details. Now, if you always want it to create the actor in the middle of the view, you will need to change the x and y values to the ones above.

Re: Two simple questions

PostPosted: Tue Aug 04, 2009 10:00 am
by adminDUM
First: Thanks for the answer!

To my second question:

I would like create a button which is an actor. If the button is clicked the game paused and open an other actor where the player can read how the game is to play.

The problem ist not detached with the code? - When I clicked at the button the games paused but there appears no actor... :(

Re: Two simple questions

PostPosted: Tue Aug 04, 2009 11:17 am
by skydereign
Well, what you need to do is have an actor with text. Then on the mouse button down, create your text actor. On the draw actor event for your text actor, have the pause game call. You can also use timers if you prefer those. To resume game, you can make it so when you click the text actor, it turns off pause and destroys itself.

Re: Two simple questions

PostPosted: Tue Aug 04, 2009 6:49 pm
by adminDUM
Hello again!

NOW IT WORKs! - HUGE Thanks!!!

-- Ulf

Re: Two simple questions

PostPosted: Wed Aug 05, 2009 11:42 am
by skydereign
A correction to my first post, there are certain things you may consider hotkeys. Some examples are < and >. These will zoom in or out of the stage. Another is left shift, this one will move actors in a connected fashion, for making uniform tiles and other. Right shift allows you to delete tiles while it is held, assuming you are editing tiles. The last one I can think of is right ctrl which allows you to grab hold of the stage and move it around. This is helpful if you have a lot of unlocked actors, and you need to move around. I think that covers all of them, I may have missed some.