EyeHawk's Recent Forum Activity

  • Hi Guys,

    I'm playing around with RC4 Encryption in JS, and calling it with the CallJS and Function (injectJS) Plugins.

    I'm able to successfully use the 2 plugins to call the JS code to encrypt my text, but the encrypted text seems to be all jumbled up, and is not the same as on a 'proper' implementation, e.g.:

    shop-js.sourceforge.net/crypto.htm

    For example I'll enter in:

    text = "new"

    key = "aaa"

    From the sourceforge page I get: "sTlr"

    Whereas if I call the same code from my construct 2 project I get: "R?D"

    I've used both CallJS from Joe7 and Function (InjectJS) from RexRainbow, which return the same result, so it's not an issue with the plugins. I'm not sure if perhaps there is something weird with the character sets that are returned, or some behaviour with C2 that I don't know about?

    Any ideas guys?

  • Hi I was trying to figure this out for a couple of days as well. It was a pain because I was working with the ipad, and the keyboard wouldn't go away after hitting enter.

    There's another thread which uses the CallJS plugin to lose focus:

    scirra.com/forum/making-a-textbox-lose-focus_topic51798.html

    It didn't work for me unfortunately, but I found a cheap-ish workaround.

    Once I filled my textbox, and pressed enter, I captured the data in a variable and destroyed the textbox, which immediately removed focus.

    Next in the same condition, I recreated the textbox in the same position, and repopulated it with the text.

  • Hi Guys,

    Once a person has entered his/her email address in a textbox, how do I validate that it's in a proper email format, e.g. eyezpe@eye.com?

    The manual says that I can set the textbox type to 'email':

    scirra.com/manual/117/textbox

    But how do I validate it, and if it's non-email format, then how do I return an error?

    EDIT June 4, 2012 - I've figured it out.

    You can use the system expression - tokencount.

    From the manual:

    "tokencount(src, separator)

    Count how many tokens occur in src using separator. For example, tokencount("apples|oranges|bananas", "|") returns 3."

    I did tokencount("bob@bob.com", "@") to check for the number of 's (there should only be one).

    Then did the same for "."'s.

    Regular expressions would have been better, but this kind of works.

  • Hi Guys, I had a play with this, and the link smitchell provided works. But you have to use Zeroplusone's plugin instead, as Juanatar's doesn't work currently: scirra.com/forum/plugin-priteurl_topic51261_page1.html

    Once you've added it, you can add the action:

    spriteURL: "https://graph.facebook.com/" &facebook.UserID &"/picture"

    You may have to turn off WebGL for this to work though

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi !!

    I followed your excellent instructions, and in 10 mins I have a Construct 2 Multiplayer game running across my LAN! This is simply amazing - I can't thank you, Zacko, and everyone else involved enough for making this possible! Good work guys - the C2 community continues to absolutely astound me on a regular basis with incredible innovation and creativity :D

  • Yeah that sounds right - with no enemies the game played ok and all of a sudden the fps took a dive. Cheers for the tip, I'll give the on-screen enemy generation a go :)

  • Yann

    Hi Yann, thanks for the great example you've provided! I understand some of it, but I don't quite get the following action:

    Lerp(Sprite.PathFinder.getCtXPathList(max(0,floor(iteration)-1)),Sprite.PathFinder.getCtXPathList(floor(iteration)),iteration-floor(iteration))

    Would you mind breaking it down for me? Sorry I might need the dumbed down explanation :)

  • I figured it out - I had to set sprite scale proportional to Y.

    Every tick -> Set Scale to Sprite.Y

    I'm a little confused as to why

    Every tick -> Set Sprite.Width to Y will just keep growing bigger and bigger?

    Oh well at least scale works :)

  • Hi Guys,

    Does anyone know how to scale up the size of a simple sprite as it moves?

    For example if I do the following to move the sprite on the Y axis:

    On Every Tick -> Sprite.Y+1

    I'd like Sprite.Height to increase by 1

    But if I do:

    On Every Tick -> Sprite.Height + 1

    It just grows every tick, and balloons right out of the whole screen.

    Is there any way of increasing size in proportion to the distance travelled?

  • Hi Ernie, I've only just noticed your thread now. Are you still looking for a simple proof of concept to be developed? I can help you to put together something simple, but your other requirement is that this works on mobile/tablet devices, which means we'd have to think about performance and mobile functionality (e.g. touch, accelerometer, multiple screen formats). If you just want a really simple POC that's done mainly for a PC with a standard browser like Chrome, Firefox, IE9 - I may be able to help.

  • Hi Baron, your site is very cool - love the art!

    So what language have you written the game in?

    Is this a paid project or voluntary? If it's paid, what are the terms?

  • eduarperu

    Hi there, and welcome to the Construct 2 Forums! :)

    Your thread sounds interesting, I may be able to help you out. First of all, do you have specific game designs in mind, or are you happy just to give a very general concept for us to flesh out?

    For a background on us:

    A colleague and I are currently providing proof of concepts for porting existing flash games into HTML via Construct 2 as a proposal for a prospective client. I'm fairly new to this industry, but so far I've been able to duplicate games in 2-3 days with C2 which have taken 2-3 months for flash developers to put together.

    What is your website?

    I also have another business associate who is originally from Argentina who is a fluent Spanish speaker who may be interested in getting involved.

    In terms of cost, if I can have as much detail as possible on the project, I may be able to provide a rough quote. We can accommodate for the fact that you're non-profit with a lower than usual rate, if you can provide us with an official commendation/reference once we have done the job for you.

EyeHawk's avatar

EyeHawk

Member since 25 Feb, 2012

None one is following EyeHawk yet!

Connect with EyeHawk

Trophy Case

  • 12-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies