SGDK Version 2 > Help, Errors, FAQ
ReactToPush
v6v:
As the title says, why does ReactToPush not work in HTML5?
The Datasheet says "No" and my game just hangs there because of a break in the script using IE's F12 developer tools.
Edit: additional information- my purpose is to create a sprite category that pushes itself out of the way of other instances in the same category, currently the end result is a group of sprites walking in a tandem line, something that runs great in the C# code but not in the HTML exported project. a good visualization would be soldiers walking in line.
Are there any alternative ways of going about that? I'm looking through the HTML datasheet and I'm noticing a good amount of the rules that would probably use reflection or passing by ref (JavaScript passes by reference automatically, right?) aren't supported or are just untested.
bluemonkmn:
It just wasn't among the functions I thought critical enough to implement in the first iteration. I think the iotabuildit project implemented it, though. Can you get the implementation of reactToPush from http://hg.code.sf.net/p/iotabuildit/code/raw-file/408d42e6cd90/HTML/SpriteCustom.js?
v6v:
Neat! I'm searching through that to find any other functions of interest.
bluemonkmn:
If you want to see the whole project and all its source, you might want the whole SGDK2 file: http://hg.code.sf.net/p/iotabuildit/code/raw-file/408d42e6cd90/SGDK2/iotaBuildIt.sgdk2.
v6v:
It seems that a Sprite's Priority has a huge effect on ReactTPush.
Why is that, bluemonkmn?
Navigation
[0] Message Index
[#] Next page
Go to full version