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

Topics - Artilleryman37

#1
Hey guys,

i have a problem where im using a touch pad on a laptop and when i launch my game to test it i get a dialog box stating that i need a mouse to play and then there is no cursor once loaded. is there a way to get ags to recognise the touch pad as a mouse?
#2
hi,

I have been able to get my character to walk with animation via the a(left) and d(right) buttons with:

global script:
function on_key_press(eKeyCode keycode)
{
  if (IsGamePaused()) keycode = 0; // game paused, so don't react to keypresses
 
  if (keycode == eKeyA) moveleft();
  if (keycode == eKeyD) moveright();

seperate script:
function moveleft() {
 
  cCharacter.Walk(cCharacter.x - 20, cCharacter.y, eNoBlock, eWalkableAreas);
 
  }
 
  function moveright() {
 
  cCharacter.Walk(cCharacter.x + 20, cCharacter.y, eNoBlock, eWalkableAreas);
 
  }


The problem im having is if the player tries to use the button again too early or holds the button for continuous movement it interupts the previous walk cycle causing the player to either "elastic band" back to their original position, move in small jerky movements, or just stand in one spot cycling through the walk cycle until you let go of the button.
#3
Advanced Technical Forum / parse error help
Fri 11/02/2011 02:42:29
hi, i'm currently working on a halo side scroller and i'm having trouble with a parse error. If you could explain why i'm getting this error or a different method to achieve my goal i would be greatfull.

Code:

function repeatedly_execute()
{
  if (cShield => 101) fixshield();
  if (cHealth => 101) fixhealth();
}

Error:

GlobalScript.asc(11): Error (line 11): Parse error in expr near 'cShield'


cShield is a global variable and if it goes over 100 i want the function fixshield to run.

same problem applies to cHealth but any answer should fix both.
Thanks
SMF spam blocked by CleanTalk