Added: 3 years ago
From: PivotyPivoty
Views: 6,232
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (30)

Sign In or Sign Up now to post a comment!
  • Yes my friend congratulations, i´m converting yours tutors to AS3... it is Wonderful... best regards

  • your the best tutorial maker , game creator thing you should work for youtube

    YOU ROCK! i subbed :)

  • Nice!!

  • code for char?

  • I've made games like this before, the character does not actually move, the background does. Giving the illusion of a walking character.

  • im having trouble a wall collision code... could one of you please help me?

  • do you meen the .hitTest( etc?

  • altho no offence to ur video pivoty, i love ur videos im jus saying this scrolling idea is kinda stupid, altho nooffence to you, you'reself ur still one of my biggest idols on youtube other than like kirk hammet and james headfield and all the people from amon amarth and so on yeah yeah yeah

  • @Skedist

    Erm... how is it stupid? It's simple and it works fine, what more do you want? Are you saying that having 400 lines of code for something that can be done in 10 is stupid? And it's heTfield, not heADfield.

  • @sk8r2000 I agree with skedist (Even if the name sound like Sh*t) that is F*ckin' siple the background is the only thing moving i can make a better game only using one code this is just my opinion!!!!

  • wtf lmao i didnbt kno what this was by a scroling*** game untill i looked at it lmao why donty you jus make a layer called ground and you can add as many blocks as you want and add my script ill tell you in another comment, this one is too short, actually if you guys want it, message me it has gravity and stuff, but anyway, after you make that ;layer make a block or w/e and convert it to symbol and call it ground with instance name and you can walk on it, instad of the fucking scrolling

  • the character does not move only the background lol

  • for up and down change the 'x' to a y

    quite simple mathmatics (and change the keys to UP and DOWN or 89 for the w key and 83 for the s key (65 for a and 68 for d)

  • @highalch33 how to you know wich numbers are which keys?

  • onClipEvent(enterFrame){ if(Key.isDown(Key.UP)){ this._y -= 12 _root._y-=12 } if(Key.isDown(Key.DOWN)){ this._y+=12; _root._y+=1 } } //_root means outside the thing ur adding, just like adding a code to the frame. //but u must put on some frames _x=0 _y=0 because the _root never goes back to da screen IF U DID NOT UNDERSTAND ANY OF WAT I SAID WATCH "BOB FLASH TUTORIALS"
  • great thanks!

  • muy bien

  • si.. :D

  • si esta genial

    yeah it`s great

  • ThankYou. I need to ask you a question. You can make it go left or right but can you make it go up and down. Thankyou

  • onClipEvent(enterFrame)

    if(Key.isDown(Key.UP)){

    _x-=speed;

    }

    if(Key.isDown(Key.DOWN)){

    _x+=speed;

    }}

  • correct actionscript is:

    onClipEvent(enterFrame){

    if(Key.isDown(Key.UP)){

    this._y -= 12

    }

    if(Key.isDown(Key.DOWN)){

    this._y+=12;

    }

    }

    //if this doesn't work just give me a pm!

  • I dont know why your comment is marked as a spam.

  • ya same here... LoL

  • oh,thanx.just that i need for my rpg

  • umm wats the point if only the background moves

  • Code:is better like this onClipEvent(load) { speed=7; camera=7 } onClipEvent(enterFrame) {if(Key.isDown(Key.RIGHT)){ _x+=speed; _root._x-=camera } if(Key.isDown(Key.LEFT)){ _x-=speed; _root._x+=camera } }
  • good tut, thanks

  • your welcome! thx for the comment!

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more