<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>8 Way Movement in flash</title>
<description> I have gotten down a flash engine for side-scrollers like Super Mario Bros. and Mega-Man and it senses walls and can jump and move left and right. Now I need to get the sprite to move in a upward-rightward method using only the arrow keys. I can post some code if you need it to help me. I am working on a full fledged 16-bit dedication game with some type of engine like the listed games.</description><link>http://forum.wiibrew.org/read.php?14,7744,7744#msg-7744</link><lastBuildDate>Tue, 16 Jun 2026 11:37:47 +0200</lastBuildDate>
<generator>Phorum 5.2.23</generator>
<item>
<guid>http://forum.wiibrew.org/read.php?14,7744,8887#msg-8887</guid>
<title>Re: 8 Way Movement in flash</title><link>http://forum.wiibrew.org/read.php?14,7744,8887#msg-8887</link><description><![CDATA[ else if (Key.isDown(Key.DOWN)<br />Remove the "else".]]></description>
<dc:creator>HyperHacker</dc:creator>
<category>Offtopic</category><pubDate>Tue, 27 Jan 2009 07:38:58 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?14,7744,8385#msg-8385</guid>
<title>Re: 8 Way Movement in flash</title><link>http://forum.wiibrew.org/read.php?14,7744,8385#msg-8385</link><description><![CDATA[ This is my code for the sprite. This includes gravity and jumping around.<br /><pre class="bbcode">
onClipEvent (Load) {
	movespeed=5;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
play();
_x+=movespeed
gravity=2
}
else if (Key.isDown(Key.LEFT)) {
play();
_x-=movespeed
gravity=2
}
else if (Key.isDown(Key.DOWN)) {
_y+=movespeed
gravity=2
}
else if (Key.isDown(Key.UP)) {
_y-=movespeed+5
gravity=2
}
}
onClipEvent (enterFrame) { 
 radius=15.8
 while (_root.wall.hitTest(_x, _y+radius+5, true)) {
        _y--;
		speedy=0
		gravity=0
    }
    while (_root.wall.hitTest(_x, _y-radius-6, true)) {
        _y++;
    }
    while (_root.wall.hitTest(_x-radius-13, _y, true)) {
        _x++;
    }
    while (_root.wall.hitTest(_x+radius-5, _y, true)) {
        _x--;
	}
}
	onClipEvent (load) {
	gravity = 2;
	speedx = 0 ;
	speedy = 0 ;
}

onClipEvent (enterFrame) {

	speedy = speedy + gravity ;
	this._x += speedx/5 ;
	this._y += speedy/5 ;
}</pre><br />If you can help me out in a more easy way to implement on the code already written.]]></description>
<dc:creator>pinball Wizard</dc:creator>
<category>Offtopic</category><pubDate>Tue, 20 Jan 2009 01:50:35 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?14,7744,7834#msg-7834</guid>
<title>Re: 8 Way Movement in flash</title><link>http://forum.wiibrew.org/read.php?14,7744,7834#msg-7834</link><description><![CDATA[ Assign a jump variable and a jump direction variable to your sprite&#039;s class (assuming your sprite is based off a class). Increment jump once every loop once the character is jumping. Then use a large number of if statments to change the x and y values of your sprite accordingly to each position and direction for each stage in the jump sequence. Also include if statements that could end the jump sequence (like if"megaman lands on a platform" stop the jump sequence).<br /><br />Hope that helps.]]></description>
<dc:creator>Arikado</dc:creator>
<category>Offtopic</category><pubDate>Tue, 13 Jan 2009 21:12:16 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?14,7744,7833#msg-7833</guid>
<title>Re: 8 Way Movement in flash</title><link>http://forum.wiibrew.org/read.php?14,7744,7833#msg-7833</link><description><![CDATA[ I have (at the moment Megaman sprites) a character with jump capabilities in a gravity world. I want to be able to jump upward but at the same time move right. At the moment It will either more right OR jump up. I want to get the the 45 degree angle part of the action.]]></description>
<dc:creator>pinball Wizard</dc:creator>
<category>Offtopic</category><pubDate>Tue, 13 Jan 2009 21:05:33 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?14,7744,7800#msg-7800</guid>
<title>Re: 8 Way Movement in flash</title><link>http://forum.wiibrew.org/read.php?14,7744,7800#msg-7800</link><description><![CDATA[ Sorry, not quite sure what you&#039;re asking for. Are you asking how to read the input to accomplish this, or how to make a character jump?]]></description>
<dc:creator>whodares</dc:creator>
<category>Offtopic</category><pubDate>Tue, 13 Jan 2009 08:48:28 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?14,7744,7744#msg-7744</guid>
<title>8 Way Movement in flash</title><link>http://forum.wiibrew.org/read.php?14,7744,7744#msg-7744</link><description><![CDATA[ I have gotten down a flash engine for side-scrollers like Super Mario Bros. and Mega-Man and it senses walls and can jump and move left and right. Now I need to get the sprite to move in a upward-rightward method using only the arrow keys. I can post some code if you need it to help me. I am working on a full fledged 16-bit dedication game with some type of engine like the listed games.]]></description>
<dc:creator>pinball Wizard</dc:creator>
<category>Offtopic</category><pubDate>Tue, 13 Jan 2009 01:58:18 +0100</pubDate></item>
</channel>
</rss>