Page 1 of 1

jazz e bob

PostPosted: Sun Feb 06, 2005 4:22 pm
by Fenrir
Sorry to disturb, but I have a question regarding your "Click And Move Actor" - script. There seem to be problems when I choose mainactor to function as parent for view. The actor won't move to where I have clicked.
I also would like to know how to expand the area in which the player will move.
What should I do different from your code?

PostPosted: Wed Feb 09, 2005 10:26 am
by jazz_e_bob
working on new demo now... :)

PostPosted: Wed Feb 09, 2005 11:10 am
by Fenrir
:D

PostPosted: Wed Feb 09, 2005 11:15 am
by jazz_e_bob
I also would like to know how to expand the area in which the player will move.

menu config -> game properties -> game resolution

http://www.artsystems.com.au/game%20editor/demo%20-%20click%20and%20move%20actor.zip

Try 02.ged

PostPosted: Wed Feb 09, 2005 11:47 am
by Fenrir
jazz_e_bob wrote:
I also would like to know how to expand the area in which the player will move.

menu config -> game properties -> game resolution

http://www.artsystems.com.au/game%20editor/demo%20-%20click%20and%20move%20actor.zip

Try 02.ged


No, no. That is not what I ment. I'm creating a game for PPC, 320x240, and so I cannot change the resolution. I want the view to follow the actor, but still be able to move him by mouse. This I cannot do now.
I can't seem to read the 02.ged file. It says that my version of GE is too old, but I have v.1.2.7

PostPosted: Wed Feb 09, 2005 7:09 pm
by jazz_e_bob
:cry:

Sorry about the demo. I am running latest beta...

:oops:

Anyway:

Create an actor called "character".
Create an actor called "characterDestintion"

on create characterDestination
follow mouse
visibility state = don't draw but allow events

set the views parent to character

on mouse down characterDestination
move character to characterDestintion

PostPosted: Wed Feb 09, 2005 8:00 pm
by Fenrir
Hay, Jazz-e-bob-san!

Regarding that last of what you said:

"on mouse down characterDestination
move character to characterDestintion"

how do I manage this? Do I have to script it, if yes then how?

I'm grateful for your help.

PostPosted: Wed Feb 09, 2005 9:08 pm
by jazz_e_bob
I think the script is:

moveto( "character", characterDestination.x, characterDestination.y, [put speed here] );

PostPosted: Thu Feb 10, 2005 10:22 am
by Fenrir
My thanks to the bob. You are the man bob.

Another question, if I may. Now that I can move my player around using the stylus, I would like it to have animations as it moves, the right animation in the right direction (including diagonally). How could this be done?

PostPosted: Thu Feb 10, 2005 12:20 pm
by ingsan
I'm writing the tut Fenrir :)
You're too impatient :wink:

PostPosted: Thu Feb 10, 2005 12:54 pm
by Fenrir
ingsan wrote:I'm writing the tut Fenrir :)
You're too impatient :wink:


Sorry, I forgot. :oops: Looking forward to see it, when it's ready. :D