Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Basic Error

Community Beginner ,
Dec 18, 2014 Dec 18, 2014

Hello again, now i'm getting a basic error, i dont know why, if some one can help thanks,

my character is passing the background, how do i fix this? http://prntscr.com/5ib7qi

TOPICS
ActionScript
689
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 19, 2014 Dec 19, 2014

that's because you're not correctly applying whichever solution you're trying, and it's not possible to say why it's failing because you've provided no info.

Translate
Community Expert ,
Dec 19, 2014 Dec 19, 2014

usually you would use a hitTestObject or check the y property of your character to prevent movement beyond a horizontal plane.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 19, 2014 Dec 19, 2014

don't work '-' the player keep going under the ground

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 19, 2014 Dec 19, 2014

that's because you're not correctly applying whichever solution you're trying, and it's not possible to say why it's failing because you've provided no info.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 19, 2014 Dec 19, 2014

what info do you need?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 19, 2014 Dec 19, 2014

what code are you using to execute that hittestobject or check the y property?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 20, 2014 Dec 20, 2014

you mean this? if(back.collisions.hitTestPoint(player.x + leftBumpPoint.x, player.y + leftBumpPoint.y, true)){

'-' i'm a newbie sry

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 20, 2014 Dec 20, 2014

that could be the code you're using.  i don't really know.

if that is your code, it needs to be in a loop (like enterframe or a timer) so it repeatedly executes, at least, every time back.collisions or player or leftBumpPoint changes x or y.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 21, 2014 Dec 21, 2014

function loop(e:Event):void{

if(back.collisions.hitTestPoint(player.x + leftBumpPoint.x, player.y + leftBumpPoint.y, true)){

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 21, 2014 Dec 21, 2014

if that's an enterframe listener function, that should work assuming all those object references are correct.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 22, 2014 Dec 22, 2014

Oh, well, now i get a new error '-'.

ArgumentError: Error #2109: O rótulo do quadro idle não foi encontrado na cena idle.

  at flash.display::MovieClip/gotoAndStop()

  at TheAdventureofaTopHat_Scene1_fla::MainTimeline/loop()[TheAdventureofaTopHat_Scene1_fla.MainTimeline::frame1:242]

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 22, 2014 Dec 22, 2014
LATEST

you have an incorrect frame label.  frame labels are scene specific.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines