Revision: 66593
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 1, 2014 04:37 by RiveraEraGames
Initial Code
//ITS THE RIVERA ERA //THE FIRST URBAN PUERTO RICAN DEVELOPER //REPLACE 'instance_name_here' WITH YOUR //MC OBJECT INSTANCE NAME import flash.events.Event; stage.addEventListener(Event.ENTER_FRAME, mMotion); function mMotion(evt:Event):void { instance_name_here.x = stage.stageWidth / 2; instance_name_here.y = stage.stageHeight / 2; instance_name_here.x += Math.floor(Math.random() * 100); instance_name_here.y -= Math.ceil(Math.random() * 100); if (instance_name_here.x > stage.stageWidth) { instance_name_here.x = stage.stageWidth / 2; if (instance_name_here.y > stage.stageHeight) { instance_name_here.y = stage.stageHeight / 2; } } }
Initial URL
Initial Description
Produces a 'quake' effect on an instance of a MC. (It's The Rivera Era)
Initial Title
Earthquake Effect (RIVERA ERA)
Initial Tags
Initial Language
ActionScript 3