9 Forum Posts by "Maartenovski"
I always vote any submission by the crew a zero. In the begin I tried to watch em, but theyre just so bad I just do not bother anymore. Sometimes I check if they have some sort of quality nowadays but I always come to the conclusion that I wasted more time again.
I don't really understand why they aren't IP banned or something :S
you would still be able to increase your health / good if you dont check for the money first.
To thread starter, try trace (_root.health) or trace (_root.good);. You said you wanted to increase health, increase the variable that represents health thats why i said _root.health and not _root.good...
At 10/14/07 05:48 PM, zooominsh wrote: on (press) {_root.good +=15;}
on(release){
if (_root.points >= 1) {
_root.points-= 1;
}
}
+15 helth cost 1 point, i hve 3 points, but i can press how much time i want adn health goes up.
but how to make the health goes up so much times - how many points you have.
on(release)
{
if (_root.points >= 1)
{
_root.points --;
_root.health += 15;
}
}
OR I do not understand ur question
At 10/5/07 06:07 PM, Moonkey wrote: When you write something like
this.theListener.onMouseDown = function ()it doesn't actually call that function straight away. You're just telling theListener what to do when the mouse is released.
{
this.thisMouse = "down";
this.lastMouse = "down";
}
So in your getMouse() method, all you're doing is setting up those 3 functions, and then returning thisMouse before any of those functions have had a chance to go off.
I understand what you mean. But check this.
public function getMouse():String
{
this.theListener.onMouseDown = function ()
{
this.thisMouse = "down";
this.lastMouse = "down";
trace (this.thisMouse);
}
trace (this.thisMouse);
return thisMouse;
}
So, obviously, my variables DO get a certain value, but those defined inside the onMouseWhatever function are different variables then the one used inside the method. I do not know why, but i think this is the case. The output with that code would be "undefined, undefined, *mouse pressed*, down, undefined, undefined etc etc.
That is for me proof that the function WILL get called, and that the method can return a good value (other then undefined) if you press, move or release the mouse.
I hope I understood what you said correctly and that you will understand what i tried to explain here. I hope you know a solution, because this thing is buggin me in not only one project im currently working on AND I worked on this thing the allmost entire day, the one day in a couple of weeks that i am actually free of obligations etc. (yes i am very sad indeed :P )..
anyway thx for the help so far ;)
Im new at OOP, and just learning to program classes. However i am wondering whats wrong with this...
[code]
class MouseListener
{
private var thisMouse;
private var lastMouse;
private var theListener;
public function MouseListener()
{
this.theListener = new Object();
Mouse.addListener(this.theListener);
}
public function getMouse():String
{
this.theListener.onMouseDown = function ()
{
this.thisMouse = "down";
this.lastMouse = "down";
}
_root.onMouseUp = function ()
{
thisMouse = "up";
this.lastMouse = "up";
}
_root.onMouseMove = function ()
{
this.thisMouse = "move";
}
trace (this.thisMouse);
return thisMouse;
}
public function getLastMouse():String
{
return this.lastMouse;
}
}
[/code]
Why would this trace undefined? Its probably just a newb mistake, but id like some help with finding it.
thx
yes you can of course get a right click menu, but thats so sow. Never fast enough for a move order when every mili second counts.
ctrl click.. thats a better idea but still not right click XD
Yea, ive seen some flash rts games. I love rts games myself and i love programming so its not strange that im working on an rts game myself atm.
The true problem is of course the absence of the right mouse button in flash. It makes move orders etc extremely difficult since you have to work with double click or something like that..
Im sorry for this bump. But this is really true. I just cant understand those review conditions. Ive seriously voted everything zero but overal 6, only because it was a tutorial or something.
Someone here said it was about that newgrounds was based on sex and violence. But a site has to keep up with time, it isnt about the violence anymore!
Yes it doesnt matter that much, but usefull conditions that made sense would actually help people out. Especially if the author could state the conditions.
Especially violence would never be something i would care about if i was really reviewing a movie. I mean, is the violence good? How can violence be good? The only thing why violence should be in a movie/game is because of the action, the adrenaline etc.
The reason why im bumping this topic is because I would love to see this being changed, it should! To spread this would be a good idea :P
can anyone please give me the action script that does,
when a movie clip (controled by arrow keys etc) hits an other movie clip it will stop moving so you can't walk through the other movie clip
I got
onClipEvent (enterFrame) {
if (this.hitTest(_root.rock)) {
_root.dude.PlayAndStop (9); }}
9=frame where movie clip "dude" is standing still. The problem is I have no Idea what this.hitTest does
thanks in advange
Maartenovski

