Two simple questions

Non-platform specific questions.

Two simple questions

Postby adminDUM » Tue Aug 04, 2009 8:43 am

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
When I got my brain I always ask the spender why he not was smarter ...
User avatar
adminDUM
 
Posts: 7
Joined: Tue Aug 04, 2009 8:29 am
Score: 0 Give a positive score

Re: Two simple questions

Postby skydereign » Tue Aug 04, 2009 9:29 am

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Two simple questions

Postby adminDUM » Tue Aug 04, 2009 10:00 am

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... :(
When I got my brain I always ask the spender why he not was smarter ...
User avatar
adminDUM
 
Posts: 7
Joined: Tue Aug 04, 2009 8:29 am
Score: 0 Give a positive score

Re: Two simple questions

Postby skydereign » Tue Aug 04, 2009 11:17 am

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Two simple questions

Postby adminDUM » Tue Aug 04, 2009 6:49 pm

Hello again!

NOW IT WORKs! - HUGE Thanks!!!

-- Ulf
When I got my brain I always ask the spender why he not was smarter ...
User avatar
adminDUM
 
Posts: 7
Joined: Tue Aug 04, 2009 8:29 am
Score: 0 Give a positive score

Re: Two simple questions

Postby skydereign » Wed Aug 05, 2009 11:42 am

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron