Menu

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.

Show posts Menu

Messages - Aljoho

#61
   I've been trying for a while now to make a script to make the character face the mouse loacation, using an 8 way character. Ive done the incredibly easy part but of course this means that he will always face up and down, unless you are on the exact y location of the player, this is also useless for an 8 way character, how can i get it to work with relatively straight lines, or at least so that within certain blocks of say 50 by 50 the player can face so it is a square edged triangle for the mouse to go in, however little that makes sense :o
   So far this is just the simple bit I have:

    if (mouse.x > player.x) player.FaceLocation(cCharacter.x + 50,cCharacter.y);
    if (mouse.x < player.x) player.FaceLocation(cCharacter.x - 50,cCharacter.y);
    if (mouse.y > player.y) player.FaceLocation(cCharacter.x,cCharacter.y + 50);
    if (mouse.y < player.y) player.FaceLocation(cCharacter.x,cCharacter.y - 50);

   If anyone can understand my bad explanation help would be greatly appreciated
#62
   Whenever i try run my game, i go to the light switch, which changes room, and this error message is displayed:
it comes up with the usual "an error has occured please note down the following" etc. The room load function doesnt exist and I know from the help section what this is, but its sloly grown so that once i ran it and it crashed, then i tried it again and another thing which worked perfectly before crashed, now my whole game is falling apart around my ears with that message being displayed when i change most rooms. All i did inbetween the two tries where it worked perfectly and when it stopped was import a walkable area mask. ???
   I've tried reinstalling AGS, and changed all sorts of functions i made but it still doesnt work

   Any help would be greatly appreciated. :=
#64
cheers works like a charm ;D
#65
   nope still cant crack it :o

   I was hoping  to alter the display function, or create my own similar function useing display so whenever i use my function , it will display the text at a certain height and width within the bounds of the level (so if I have a level bigger then my resoloution it wont go off the screen). I've tried copying some of the script from the overhot module, using similar bounds as those I set for that but it just shows nothing.
   as for lazyness, you cant blame a guy for trying :P
#66
   I want a point in my game where a character walks on a platform , then walks around it , down some stairs and under the same spot, just lower down. Its easy to turn on and off walkable areas of course but i can do the same for walk behinds as far as i know. i searched the knowledge base but no luck there.
   It would be brilliant if anyone could come up with a soloution, or perhaps something blindingly obvious that i've missed. Any help would be brilliant :D
#67
   Im just making my first game and i have an annoying problem.

   Is there a way i can automatically set the display function to display my strings of text at a specific location, such as on my GUI without having to use at x at y for each one, altering the global script to incorporate this. i could do it the long way but im lazy and if anyone knows a simple way to do this it would be much appreciated ;)
SMF spam blocked by CleanTalk