Jase00's Recent Forum Activity

  • Hey guys! Thought I'd share my own ideas <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz">

    So lets say I am a thief. Rawr. *steals wallet*

    I decide to steal your game from the arcade and upload it to my own website. I run it and notice I get redirected to Scirra.com all the time, or the game's objects all destroy, or whatever outcome you picked to happen to your game if run on a different website.

    I would instantly think that there is some protection in place. I would think it's something website related and then I'd open the games files up. I would find "Data.JS" and see all this strange obfuscated code because you ticked Minify like a good developer. Now I may give up at this point, but I decide to do a quick CTRL+F search and type "www." just incase I could find a website reference.

    Bam. I found the website address it is trying to detect. I then modify this address to my own address. Done. I win. Mwahahhaha

    In all seriousness, that is the case. Check out this screenshot of the data.js of a minified HTMl5 export of the event "Browser.URL = http://www.scirra.com":

    FEAR NOT! I thought of an idea that I haven't physically tested if it 100% works but here it goes:

    Instead of having the event plainly detecting the whole string "http://www.scirra.com", you could split parts of it up using Local Variables so that it's not as obvious! Here's a screenshot of splitting 1 piece of the URL to get an idea of what I mean (Not sure why the action is to vibrate but yeah):

    I guess the more effort and time you put into splitting the URL up, the more effective it will be.

    Now as a thief, I would need to spend much more time figuring this out.

    Hope this was useful!

  • I currently use Bandicam like KFC mentioned. It works great and isn't limited to DirectX games or anything, you can select a region or window or whatever you like (not to do with crashing or lack of disk space, literally just randomly corrupted after an hour of constant recording).

    I've never heard of "Action!" but it sounds great, I might check it out next time I need to record stuff

  • I had this happen to me too a while back I found an alternative though, but I still would much prefer FRAPS. Not sure why this happens.

  • Animmaniac

    Woah!! That is exactly what I was trying to get all along!!! Ah it makes much more sense, I was so confused with the weird semi-transparent result from my own experiments Thank you very much!

    I only need to figure out 2 more things and that's it . I reckon I might find some info to study from looking at other shader files but if you have any pointers considering you seem to know your way around this sort of thing, I'd be very grateful!

    The first being, how would I be able to set the value according to number of pixels from the side? So if I set R to 7, it would trim 7 pixels off of the right side of the Sprite.

    The second being, how would I incorporate Angles into this shader? If I had another variable called "AngleOfCrop" which is set to like 15 and "R" is set to 9, it would trim the right side 9 pixels, but at a 15degree angle. Below is a picture to explain (The Red part is the part that will be invisible from the crop) [EDIT: I realised that this little diagram might not be correct. I need to rethink the theory behind what I'm trying to explain.]

    I think this part is going to be harder to do than the original non-angled crop. It doesn't help that I barely know how shaders work but it's something I'm interested in and am picking up on information from reading documenation, looking at other existing shaders, and reading your replies. Thank you for your time!

  • Thank you for the info! It instantly made me figure out how to solve my HUD issue.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Can confirm. I have recently ran into this issue with Crop being strange with positioning, exactly like you have described.

    I have a top-level "HUD" layer with (0,0) parallax. I have a HUD Sprite that need to position according to Sprites in another layer called "Game" (No parallax). This means I need to use CanvasToLayer or LayerToCanvas (forgot which) to convert the "Game"'s layer coordinates into the "HUD"'s layer.

    This works perfectly and things position correctly, but if I use Fullscreen Crop and resize the window to not match the window size property (Like you said), the HUD Sprite gets displaced.

  • Hey rexrainbow, this plugin is awesome!

    I have been trying to make a ray system for lasers for a while now, but I could never produce something that didn't kill performance whilst maintaining high accuracy. My final attempt involved setting the laser to it's "maximum width", then dividing the width until it no longer collides, then multiply the current width a little bit blahblah, it didn't work too well and performance was bad. But then you bless us with this beast of a Behaviour!

    Before I attempt to even begin to interpret how you made this plugin work, could you tell me how you done it in pseudo-code? Would this behaviour essentially be possible to recreate in events?

    I would think the most accurate but CPU-intensive way is to increase the width +1 in a loop until it hits a wall then -1 width and done. I'm very curious about how done this

  • Hello!

    Sorry for not making bug reports but I don't currently have time to look deeply into this and have tried to recreate it but failed, and there is a workaround. I wanted to see if anyone else is running into a similar situation.

    So in my scenario, I have a powerup that creates a shield that gets positioned onto the player.

    In the event where the shield spawns, it sets it's instance variable "PlayerUID" to the player to stick it to, and in another separate event, it positions at the player as long as the "PlayerUID" matches the Player's UID.

    This works fine, until a recent update (can't pinpoint when, but past 2 updates? ). Now the shield gets created but doesn't position at the player.

    So you might be thinking "Maybe it's a ForEach problem?" or maybe it's my own code error somewhere else? Well... here's the best part. the shield will begin to stick onto the player the next time there is a "Wait 0" command. I can literally create a new event like "On K pressed" (knowing I do not use the key anywhere else in my events) and put "Wait 0" as an action, run the game, spawn the shield, see that it isn't sticking to me, hit K, and boom, the shield begins sticking to the player all the time like it should be.

    Another Workaround is to put 2 "Wait 0" actions at the end of the "Create Shields" event, the shield spawns and sticks to player as it should.

    [NOTE: I have not used "Wait for signal" at all in my project]

    I can't replicate this in a separate capx but man I really thought this was my own error but the fix literally throws me off completely.

    Hope this reaches someone in a similar situation if they are stuck. Wait 0 is your friend.

  • You do not have permission to view this post

  • Have you tried making the host forward their ports? Usually if it works via Hamachi, port forwarding will help with not using Hamachi.

    It's probably better to Google this but I'll run down the basic gist of what you need to do.

    • Find out the ports your game uses (I haven't touched the Multiplayer plugin in a while so I don't remember if it lets you choose the port but yeah)
    • Go on the host's computer
    • Login to your router (open up a web browser and type in something like "192.168.0.1" into the address bar to get to your router)
    • Enter your Username and Password (This is probably located on a label on the actual physical router).
    • Hunt around the web interface for a section called "Port forwarding". (It may be under "Advanced Settings" or something, it varies on every router.)
    • This is where I'm more hazy in remembering what to do, but it might be as simple as typing in the Port numbers and clicking "Add" or something, maybe having a tickbox of "TCP/UDP".

    That should be all. Google is definitely your friend, my explanation is just from memory from years ago when dabbling with networking.

    Hope this helps

  • As of right now, if you check Ashley's profile, you will see that he has "Visited" for 1 day, and also "Consec days posted" for 19 days. That is pure evidence

  • Looks awesome!!

Jase00's avatar

Jase00

Member since 5 Jan, 2012

Twitter
Jase00 has 12 followers

Trophy Case

  • 13-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x19
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x8
    Lightning Draw First person to up-vote a new Construct 3 release
  • x7
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

27/44
How to earn trophies