VERSION 1.8.7 UPLOADED. Go check the new features on page 1
![Wink ;)](./images/smilies/icon_e_wink.gif)
Yes,
new camera code finished.Also,
new enemy: SPARK (with movement).
Version 1.8.7 (update #2 - DONE) with another 'WALK' pose (with/without skirt) and an improved 'Peach Running' pose: 'JAUNTING', by Biles (Peach runs if the player presses RUN key. Its different from 'almost-to-fly' running and it will be different from 'peach walking'). Peach dress open like that. Its not an error. Peach skirt has a middle opening she uses to run and stretch her legs better, in this version.
![jaunting.jpg](./download/file.php?id=10442&cache=1)
- jaunting.jpg (14.23 KiB) Viewed 3360 times
SPARK / SPARKLY on version 1.8.7, level 2-3.
![sparks.jpg](./download/file.php?id=10440&cache=1)
- sparks.jpg (23.87 KiB) Viewed 3378 times
You can see the current SPARK code here (the code is to make him alive, looping around the blocks). They have different speeds and animations (they dont animate at the same time). Made by me from scratch. One of the most difficult code due to the need to check 3 different collision areas in each loop depending on one of 4 areas (on top/at left/at right/below the block). It MAY be completed or not (may need a few tweaks). I will only check that in the future.
- Code: Select All Code
//Mario is Missing - PUT
//Spark Code - v0.2 - Ivan Aedler
//default values
movement=true;
_speed=2+random(2); //2,3,4
////////////////
if (!once)
{
once=true;
if (!this._name)
{
this._name="enemy_"+_global.FLAGS.enemyInstanceCount;
_global.FLAGS.enemyInstanceCount++;
}
}
//position it first
while (!_root.ground.hitTest(this._x, this._y+this._height/2,true)) // if not touching bottom
_y++;
_y+=2; //give more tolerance.
//default: move left
moving="left";
////// MAIN /////////
onEnterFrame=function()
{
if (movement) //I use '2-8-_speed' and other numbers because I check for 'FORESEEN' hits, that is, before losing collision.
{
if (moving=="left")
{
_x-=_speed;
if (!_root.ground.hitTest(this._x-this._width/2, this._y+this._height/2,true)) //BOTTOM LEFT FIRST COLLISION
{
if (!_root.ground.hitTest(this._x, this._y+this._height/2,true)) //LOSE CONTACT IN BOTTOM CENTER
{
if (!_root.ground.hitTest(this._x+this._width/2-8-_speed, this._y+this._height/2,true)) //LOSE CONTACT IN THE BOTTOM RIGHT
{
moving="down";
}
}
}
}
else if (moving=="down")
{
_y+=_speed;
if (!_root.ground.hitTest(this._x+this._width/2, this._y+this._height/2,true)) //BOTTOM RIGHT CHECK
{
if (!_root.ground.hitTest(this._x+this._width/2, this._y,true)) //LOSE CONTACT IN THE RIGHT
{
if (!_root.ground.hitTest(this._x+this._width/2, this._y-this._height/2+8+_speed,true)) //LOSE CONTACT IN THE TOP RIGHT
{
moving="right";
}
}
}
}
else if (moving=="right")
{
_x+=_speed;
if (!_root.ground.hitTest(this._x+this._width/2, this._y-this._height/2,true)) //TOP RIGHT CHECK
{
if (!_root.ground.hitTest(this._x, this._y-this._height/2,true)) //LOSE CONTACT IN TOP CENTER
{
if (!_root.ground.hitTest(this._x-this._width/2+8+_speed, this._y-this._height/2,true)) //LOSE CONTACT IN THE TOP LEFT
{
moving="up";
}
}
}
}
else if (moving=="up")
{
_y-=_speed;
if (!_root.ground.hitTest(this._x-this._width/2, this._y-this._height/2,true)) // TOP LEFT CHECK
{
if (!_root.ground.hitTest(this._x-this._width/2, this._y,true)) //LOSE CONTACT IN THE LEFT
{
if (!_root.ground.hitTest(this._x-this._width/2, this._y+this._height/2-10-_speed,true)) //LOSE CONTACT IN THE BOTTOM LEFT
{
moving="left";
}
}
}
}
} // movement
}
stop();
MPLDAM9919 Wrote:You wouldn't happen to have a preview of the new Daisy model, do you?
No. But in 2013 I'll have one. I may use the base of Blargh's model. Then I'll improve it, or maybe even remake it.
AsianP3rsuas10n Wrote:I made you a lock
For those pesky doors that need to stop opening.
Thanks! Asian, you were doing the same I did! But your version is better
EDIT: Ok, so we decided to improve that locker below (maintaining the same), and using your padlock on front doors like toad houses.
![door lock 1.jpg](./download/file.php?id=10433&cache=1)
- door lock 1.jpg (9.21 KiB) Viewed 3550 times