Recent posts by Ytrr on Kongregate

Subscribe to Recent posts by Ytrr on Kongregate

avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Game Programming / Please help me with maze game! (AS2)

Anyone???

 
avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Game Programming / Please help me with maze game! (AS2)

@marsh497: First click on: File>Publish (which will create an .swf-file), and then go on this site to: DEVELOPERS>Upload Game, browse to your .swf file and click OK. Fill in the forms and AFAIK that works…

But I myself have a new problem. I made a preloader and a menu, but suddenly the hitTest does not work anymore.!!

var nextlevel = 7;
stop();
function onEnterFrame()
{

    if(Key.isDown(2))
    {
        gotoandstop(9)
	}
    if(dragMe.hitTest(finish)){
  gotoAndStop(6);
   }

	}
	

Maybe it’s because I have 3 layers now???

 
avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Game Programming / Please help me with maze game! (AS2)

It works fine now but where do I need to enter var nextlevel = [frame number] now???

 
avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Game Programming / Please help me with maze game! (AS2)

WoohOOO!! It just worKS!!!
Thank you!
You definitely will go into my credits!

 
avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Game Programming / Please help me with maze game! (AS2)


Niveaunr. 0:
Variabele _level0.$version = "WIN 10,0,2,54"
Variabele _level0.onEnterFrame = [functie 'onEnterFrame']
Variabele _level0.goToThisURL = [functie 'onSelect']
Variabele _level0.linkURL = "http://www.kongregate.com/accounts/Ytrr"
Variabele _level0.linkText = "© Ytrr - (CHEATING disabled :-P)"
Variabele _level0.myMenu = [objectnr. 3, klasse 'ContextMenu'] {
    onSelect:niet-gedefinieerd,
    builtInItems:[objectnr. 4, klasse 'Object'] {
      print:false,
      forward_back:false,
      rewind:false,
      loop:false,
      play:false,
      quality:false,
      zoom:false,
      save:false
    },
    customItems:[objectnr. 5, klasse 'Array'] [
      0:[objectnr. 6, klasse 'ContextMenuItem'] {
        caption:"© Ytrr - (CHEATING disabled :-P)",
        onSelect:[functie 'onSelect'],
        separatorBefore:false,
        enabled:true,
        visible:true
      }
    ]
  }
Variabele _level0.copyright = [objectnr. 6, klasse 'ContextMenuItem']
Variabele _level0.menu = [objectnr. 3, klasse 'ContextMenu']
Variabele _level0.tabChildren = false
Knop: Doel="_level0.instance1"
Variabele _level0.instance1.scale9Grid = [getter/setter] niet-gedefinieerd
Variabele _level0.instance1.filters = [getter/setter] [objectnr. 7, klasse 'Array'] []
Variabele _level0.instance1.cacheAsBitmap = [getter/setter] false
Variabele _level0.instance1.blendMode = [getter/setter] "normal"
Variabele _level0.instance1.tabIndex = [getter/setter] niet-gedefinieerd
Filmclip: Doel="_level0.instance2"
Filmclip: Doel="_level0.instance3"

hmm… some thing are in Dutch, sorry

 
avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Game Programming / Please help me with maze game! (AS2)

first frame I have dragMe and finish (and Level1)

  • dragMe has this:
    on (press) {
    this.startDrag(false);
    }
    on (release, releaseOutside) {
    this.stopDrag();
    }
  • finish nothing (yet)
  • frame 1

    stop();
    function onEnterFrame()
    {
    if(Key.isDown(2))
    {
    gotoandstop(6)
    }
    if(dragMe.hitTest(finish))
    {
    gotoAndStop(3);
    }
    }
1. var linkURL=“http://www.kongregate.com/accounts/Ytrr”; 2. var linkText=“© Ytrr – (CHEATING disabled :-P)”; 3. //Defines a new right-click menu 4. var myMenu = new ContextMenu(); 5. //goToThisURL is a function that gets run whenever the link is clicked 6. function goToThisURL(){ 7. //_blank opens the link in a new window 8. getURL(linkURL, “_blank”); 9. } 10. //Create a new item for the new menu. 11. var copyright = new ContextMenuItem(linkText, goToThisURL); 12. //Add the item to the new menu 13. myMenu.customItems.push(copyright); 14. //Hide flash’s built in items (zoom in, zoom out, etc) 15. myMenu.hideBuiltInItems(); 16. //Apply the new menu 17. _root.menu = myMenu;

_root.tabChildren = false

But if I drag dragMe over finish, nothing happens!

 
avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Game Programming / Please help me with maze game! (AS2)

And where do I need to enter that?

 
avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Game Programming / Please help me with maze game! (AS2)

The dragging works…
But how to detect collision with finish and wall?
Someting like hittest? But how does that work then?

 
avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Game Programming / Please help me with maze game! (AS2)

-That frame is level 1 of my maze game. Yes
- Because he cheats then. Right-mouseclick.
Anti-cheat. No you shouldn’t, it’s to prevent you from doing it.
-It says: CHEATER! try again.

One question back:
Is that code of yours AC2 or AC3????

 
avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Game Programming / Please help me with maze game! (AS2)

This:

 dragMe.onPress = function(){
this.startDrag();
}
dragMe.onRelease = function(){
this.stopDrag();
}
var myMouseLis:Object = new Object();
Mouse.addListener(myMouseLis);

myMouseLis.onMouseMove = function(){
if(_xmouse<0 || _xmouse>Stage.width || _ymouse<0 || _ymouse>Stage.height) dragMe.stopDrag();
}

stop();
function onEnterFrame()
{
if(Key.isDown(2))
{
gotoandstop(6)
}
}

1. var linkURL=“http://www.kongregate.com/accounts/Ytrr&#8221;; 2. var linkText=“© Ytrr – (CHEATING disabled :-P)”; 3. //Defines a new right-click menu 4. var myMenu = new ContextMenu(); 5. //goToThisURL is a function that gets run whenever the link is clicked 6. function goToThisURL(){ 7. //_blank opens the link in a new window 8. getURL(linkURL, “_blank”); 9. } 10. //Create a new item for the new menu. 11. var copyright = new ContextMenuItem(linkText, goToThisURL); 12. //Add the item to the new menu 13. myMenu.customItems.push(copyright); 14. //Hide flash’s built in items (zoom in, zoom out, etc) 15. myMenu.hideBuiltInItems(); 16. //Apply the new menu 17. _root.menu = myMenu;

_root.tabChildren = false

doesn’t work for me…

 
avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Game Programming / Please help me with maze game! (AS2)

I dont know whats goeing wrong but it doesnt work. If I click on dragMe nothing happens. On my first frame I have insterted your code after onEnterFrame { but it didnt work. After the code ive got some other anti-cheating codes…
Any idea whats goeing wrong?

 
avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Off-topic / How many clicks does it take YOU?

2!!!!!!
I first came on Ash, South Somerset then:

  1. Australia
  2. Queensland :D:D
 
avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Game Programming / Please help me with maze game! (AS2)

On my first frame (where the dragMe is in) I pasted this code. It looked like this:

dragMe.onPress = function(){
this.startDrag();
}
dragMe.onRelease = function(){
this.stopDrag();
}
var myMouseLis:Object = new Object();
Mouse.addListener(myMouseLis);

myMouseLis.onMouseMove = function(){
if(_xmouse<0 || _xmouse>Stage.width || _ymouse<0 || _ymouse>Stage.height) dragMe.stopDrag();
}
}
stop();
function onEnterFrame()
{
if(Key. (and so on)


But it doesn’t work. And what do you mean with:
“Also, remember to check for collisions between dragMe and your maze on the onEnterFrame method for dragMe” ??

 
avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Game Programming / MovieClip Depth

Using AS3 when you don’t know how to use it because it’s your first game (as in this example) and AS3 is much more complicated slows you down more in working on the game….

 
avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Game Programming / Please help me with maze game! (AS2)

And where do I need to enter this codes?

 
avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Game Programming / kongregate games and mobile phones

Originally posted by Osiris602:

i dont believe you can play any kongregate game one phones (i could be wrong) because you need flash player which most phones don’t come equipped with and it would be tricky to install it even if they were compatible with it so im going to say no, no games for mobile phones (i hate it too)

Ever heard of Nokia N900 and Motorola Droid?

 
avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Game Programming / Voice Generator

http://http://www.groovekitten.co.uk/#/talkany/4508182908

 
avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Game Programming / Please help me with maze game! (AS2)

hm.. Good idea!! ( but how can I do that)

 
avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Game Programming / Please help me with maze game! (AS2)

Very sorry for my quadruple post but my problem is not yet solved…

 
avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Game Programming / Please help me with maze game! (AS2)

O yeah.. And my wall thing is not a Movieclip but a button… And I make them seperately for each level….

 
avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Game Programming / Please help me with maze game! (AS2)

The code doesn’t work. Or I did something wrong. I made a small thingy, converted it into a movieclip and added the code to it. But there came all kind of errors:

Error Scene=Scene 1, layer=Layer 1, frame=1, Line 1: Statement must appear within on/onClipEvent handler
x = mousex

Error Scene=Scene 1, layer=Layer 1, frame=1, Line 3: Statement must appear within on/onClipEvent handler
_y = _mousey

Error Scene=Scene 1, layer=Layer 1, frame=1, Line 5: Statement must appear within on/onClipEvent handler
Mouse.hide();
Error Scene=Scene 1, layer=Layer 1, frame=1, Line 9: ‘)’ expected
if(root.Level 1.hitTest(x, _y, true)) {

Error Scene=Scene 1, layer=Layer 1, frame=1, Line 11: Statement must appear within on/onClipEvent handler
_root.gotoAndStop(2)

Error Scene=Scene 1, layer=Layer 1, frame=1, Line 13: Unexpected ‘}’ encountered
}

Total ActionScript Errors: 6, Reported Errors: 6

 
avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Game Programming / Please help me with maze game! (AS2)

So then I have to change _root.gotoAndStop(1) into the “game over” frame? But…

if(root.wall.hitTest(x, _y, true)) { 
if my isn’t called “wall” I need to change it? But i make a wall seperately for each level. How does that work then? Or do I need to change that?
(Lots of questions, I know…)

 
avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Game Programming / Please help me with maze game! (AS2)

Or (sorry for dubbledubblepost)

 on(dragOver){
gotoandstop(2);
}

 
avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Game Programming / Please help me with maze game! (AS2)

I mean
[pre]
on(dragOver){
gotoandstop(2);
}
[/pre]

 
avatar for Ytrr Ytrr 28 posts
Flag Post

Topic: Game Programming / Please help me with maze game! (AS2)

OK thanks. Copying works. Next level works. But I want to know one thing:
AFAIK is only one cheat methoid left: dragging. How can I fix this? I’ve allready tried.
[code] on(dragOver){
gotoandstop(2);
} [/code]
But it didn’t work. Can you help me?