UberdroidGames's Recent Forum Activity

  • I don't know you need a mouse lock plugin to get the raw mouse x and y needed for FPS controls.

  • OMG I'm having so much trouble getting the mode 7 pov to match up with what I'm doing. A tutorial would be great!

  • I use the plugin "Simple MouseLock" from the C2 forums.

    I also use the Mode7 effect for the floors and ceiling. If I ray casted the floors it would be way too slow.

    Walls and objects are all just ray-casting with regular old c2 events.

  • I've come a long way since then in my ray casting ability... Check out my game

    uberdroidgames.itch.io/deadwood-hotel

  • You do not have permission to view this post

  • FPS controls mouse look asdw movement. Mouse fires weapon and mouse wheel picks weapon F for Flashlight.

    Features 3d ray casting (wolfenstein style)

    real time lighting with light sources

    Floor and ceiling with Mode7 gl effect

    Old film effects

    bullet holes, blood splatters galore

    shotgun, pistol and mp40 machine gun.

    flashlight

    light beams from windows

    progressive waves of zombies.

    Play it here:

    uberdroidgames.itch.io/deadwood-hotel

    This really shows what you can do just with construct2 and no 3d plugins.

  • Yes, actions reference other actions in the way you described. If your browser or js object execute js action is trying to talk to a function embedded in an iframe then you have to qualify the iframe to get into it.

    For my project, I'm using the ajax object to get the contents of an html file in my files and then running it as html in the iframe object. In this way I'm getting an ESRI map to show up in Construct3 using ESRI's javascript api, and I can access it by calling JS functions in that frame.

    However it looks like iFrame is not supported in Construct 3 export to Android so I'd like to do it with something else that is.

  • That doesn't appear to work. If I load this into the iframe:

    <!DOCTYPE html>
    <html>
    	<head>
    		<script>
    			function myFunction()
    			{
    				alert("hello");
    			}
    		
    		</script>
    	</head>
    	<body>
    		
    	</body>
    </html>
    

    Then with the browser object execute javascript => "myFunction();"

    It doesn't do anything.

    But wait!

    I think I figured it out!

    "document.getElementById(""myFrame"").contentWindow.myFunction();" seems to work!

    (assuming we set the iFrame's id property to "myFrame")

    I don't know if this is safe in all environments though but it seems to be working for me... Yay.

  • I need help understanding how execute javascript from the browser or javascript object can, say, call a javascript function within the embedded html of an iframe... How does this work?

  • Nice. I've used empty objects just for this reason!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The video link doesn't work either.

  • Mouse Lock. That would be really useful.

UberdroidGames's avatar

UberdroidGames

Early Adopter

Member since 4 Jun, 2012

None one is following UberdroidGames yet!

Connect with UberdroidGames

Trophy Case

  • 12-Year Club
  • x4
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies