can someone plz help me with my game script been working on it 2 weeks still cant get it right should be bout done though ty

SetActiveWindow Naruto New Flames 2.8
constants
  k1 = 0
  uparrow = 1
  leftarrow = 2
  rightarrow = 3
  downarrow = 4
End
loadRGB 271, 231
compute downarrow = Int( {RGBred} * (1 - (150/255)) + 230 * (150/255) + .49 )


loadRGB 271, 221
compute uparrow = Int( {RGBred} * (1 - (150/255)) + 230 * (150/255) + .49 )

loadRGB 277, 277
compute rightarrow = Int( {RGBred} * (1 - (150/255)) + 230 * (150/255) + .49 )


loadRGB 265, 226
compute leftarrow = Int( {RGBred} * (1 - (150/255)) + 230 * (150/255) + .49 )
Loop 500000
  Call Meditate
  Call Rest
End
Procedure Meditate
  delay 500
  Keys m
  Delay 3000
  Loop 70000
    GetRed 271, 221 = $uparrow
      if $k1 = 1
      Else
        keys {up}
        set k1 = 1
        Delay 200
      end
    End

    GetRed 265, 226 = $leftarrow
      if $k1 = 2
      Else
        keys {left}
        set k1 = 2
        Delay 200
      end
    End

    GetRed 271, 231 = $downarrow
      if $k1 = 3
      Else
        keys {down}
        set k1 = 3
        Delay 200
      end
    End

    GetRed 277, 277 = $rightarrow
      if $k1 = 4
      Else
        keys {right}
        set k1 = 4
        Delay 200
      end
    End
  End
  MousePos 257, 96
  MousePos 257, 89
End
Procedure Rest
  GetRed 331, 313 = 35
    keys m
    delay 1000
  end
  Delay 1000
  Keys i
  Delay 1000
  Keys t
  Delay 25000
  Keys t
End
Member Avatar for nssltd

First of all do not name your post's title anything like 'plz help me' put the topic title as something relevant to the problem your facing. Second wrap all code in the CODE-tags. Lastly give more information. For example you havent even specified which script your using. IE Unreal script.

Please rectify those problems and perhaps we can aspire to help you.

And you just posted on a thread that is over 1 month old.

Member Avatar for nssltd

did i? ohhh. Sorry i failed slightly... :( It was towards the top of the game development section and i forgot to check. sorry again.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.