h1k3's Recent Forum Activity

  • hi guys, one more question that I can't seem to figure out. THe following two pictures show part of my working code. The problem I'm having is I can only fire at the same 8 direction angle once, before switching to a different angle. Like here if I left click while pointing west it works fine but I cannot left click again facing west unless I left click from say northwest first. Any help would be greatly appreciated. I want to be able to fire from the same angle once.

    <img src="https://dl.dropbox.com/u/77974757/Capture4.PNG" border="0" />

    <img src="https://dl.dropbox.com/u/77974757/Capture5.PNG" border="0" />

  • Alright I think I got it. Please feel free to tell me if there is an easier way. Here's a snap of the current formula:(Note I turned off the change angle on the sprite for the ISO image. If I leave it on the images do not come out right so I added a variable called currentangle to the knight sprite to track the current moving angle)

    <img src="https://dl.dropbox.com/u/77974757/Capture2.PNG" border="0" />

  • can't seem to make an or block that will allow multiple conditions between each or so I had to post a seperate statement for each angle variance. Unless you all know of a better way?

  • Think I got it figured out. I shouldn't have put the angle as a condition because it wasn't comparing the angle, simply grabbing the angle. So I updated the code using the recommendations here and it seems to work. Heres a pic of it now, does it look ok?

    dl.dropbox.com/u/77974757/Capture1.PNG%3Cimg src="https://dl.dropbox.com/u/77974757/Capture1.PNG" border="0" />

  • Thanks I did get it to half work. I'm going to change to what you suggested but for the movement I'm still having an issue. When I check for the angle above the mouse doesn't move. When I check for an angle less than say 5 then if the mouse is anywhere above the sprite it moves east. What am I doing wrong with the condition, or is there a better way then I have posted?

  • Hi guys and gals. I'm hoping you can help, it seems so simple but I can't seem to get it right. What I want to do is for a condition check for the right mouse button to be down. For actions what I want is for my sprite to move towards the mouse but also start the correct animation within the sprite.For example:

    condition on right mouse: action: down move sprite 1 pixel toward andgle(spritex,spritey,mousex,mousey) if angle <=22.5 or >= 337.5 set animation "runningeast" play from beginning.

    But when I do it that way it moves the sprite but the animation doesn't trigger. Does anyone have any work around for this? Pretty Please :) Pretty please with cheese on top. :)

    Thank you in advance,

    Lance

    PS this doesn't seem to work at all:

    <img src="https://dl.dropbox.com/u/77974757/Capture.PNG" border="0" />

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • There are a bunch such as en.altervista.org. I'm working on Fii.com myself. One concern however is Facebook wants secure mode. Players need to uncheck the secure only setting in their account and I'm not sure yet if you can use the credits API unless you have a secure server. Have yet to find a free secure server. :(

  • Is it possible to pull variables off of an iframed web page like the grease monkey unsafewindow for Firefox? I would like to make an addon for an HTML game by pulling variables and utilizing functions on the page. I can code it using grease monkey but I'd rather build an app using my licensed c2. Any ideas on how to go about doing it?

  • I've been plugging away with php for a bit now with facebook and sql using the ajax post plugin. Had one issue with the data not returning properly(It worked fine for me typing in the php script from the address bar but it wasn't registering the return data.) . Once I checked the echo statement (problem was with the echo) and fixed the issue it worked fine. My guess is ask someone on stackoverflow to check your php script for those goofball mistakes like I had made.

  • Hey everyone,

    The name is Lance

    In advance let me start by saying nice to meet you.

    I'm a business consultant by trade, my entry into computers was a trs80 with no programmable storage. It came with basic and a manual of game code that you would have to program every time you wanted to play. I developed on from that computer into assembly language code and on to the c language with an early Borland compiler. Created a few programs for work efficiency before losing track of programming when my first child was born. As they got older I found more time and began to dabble in JavaScript through a Firefox add on (grease monkey) and developed scripts for the games I played online. My fianc� purchased a license for me in April and I've been working ever since on developing my first Facebook game.

    Again, nice to meet you

    Lance

  • I love the gamepad plugin so far. It adds so much functionality to my game. Any ideas on when they will add the vibrate control to html5?

  • If I'm not mistaken when you move the sprite changes but due to the angle of movement the desired affect looks weird? If so I had the same problem. Set 8 directional angle behavior to not change the angle. Then just use a series of events to determine the angle of movement and set sprite accordingly.

h1k3's avatar

h1k3

Member since 1 Apr, 2012

Twitter
h1k3 has 3 followers

Connect with h1k3

Trophy Case

  • 12-Year Club
  • x5
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

15/44
How to earn trophies