User Tag List

Results 1 to 6 of 6

Thread: Does my game page scroll?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export Module
    Retrobolt's Avatar
    Join Date
    Mar 2016
    Posts
    402
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Does my game page scroll?

    Hi, I'm licensing a game, but the publisher tells me that when they press the up or down keys the page scrolls. Here's a link to the game on my website, press the arrow keys and see if it scrolls*happens, also if it does, click inside the game window and see if it stops.

    I've been told to put this code in the bottom of my index.html file, but it doesn't seem to work.

    <script>*

    window.addEventListener("keydown", function(e) {
    // space and arrow keys
    if([32, 37, 38, 39, 40].indexOf(e.keyCode) > -1) {
    e.preventDefault();
    }
    }, false);
    *</script>

    http://www.retroboltgames.com/copy-of-ihe-mars-attack

    Thanks!

  2. #2
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,128
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Didn't scroll for me. Using Chrome on Windows.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export Module
    Retrobolt's Avatar
    Join Date
    Mar 2016
    Posts
    402
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks, the code I posted above does work and solves the problem.

  4. #4
    Clicker Fusion 2.5 (Steam)
    FalconsoftIndustries's Avatar
    Join Date
    Aug 2017
    Location
    Mandurah Western Australia
    Posts
    118
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    on your page it says not found.

  5. #5
    Clicker Fusion 2.5Fusion 2.5 MaciOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    advaith's Avatar
    Join Date
    Jun 2015
    Location
    SF Bay Area, California, USA
    Posts
    1,325
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    yeah, the netlify URL seems to be incorrect.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export Module
    Retrobolt's Avatar
    Join Date
    Mar 2016
    Posts
    402
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I got rid of it, here's the official one.

    https://www.retroboltgames.com/ihe-mars-attack

Similar Threads

  1. Embed a game in a web page
    By pl in forum HTML5 Export Module 2.5
    Replies: 1
    Last Post: 7th April 2017, 08:02 AM
  2. page scroll effect?
    By Perry in forum Fusion 2.5
    Replies: 0
    Last Post: 23rd March 2014, 03:35 PM
  3. Flash version of my game doesn't scroll
    By SoftWarewolf in forum SWF/Flash Export Module Version 2.0
    Replies: 13
    Last Post: 28th December 2013, 01:10 PM
  4. Help please embeding my game on my web page
    By BigTaco in forum Vitalize
    Replies: 3
    Last Post: 31st July 2011, 05:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •