Help with some hard stuff!
Blitz3D Forums/Blitz3D Beginners Area/Help with some hard stuff!
| ||
I need help with this: My player is on x = 0 and y = 0 if i push down the arrow up button my player shall walk against my mouse. How fast should be able to walk agaist it need to be configurable. Anyone help please? |
| ||
I don't really understand what you mean by 'walk against my mouse' but the answer is to express the distance as a (configurable) percentage of a notional norm. So if you wanted to configure something to move at half speed you would say configuredSpeed# = normalSpeed#*modifier# where 'modifier' would have been set to 0.5 by the user or program itself (whichever you have in mind). |
| ||
Sorry, but that makes no sense to me whatsoever. |
| ||
Me or him?! :P |
| ||
This is as clear as mud. Can you give more detail, in particular the 'my player shall walk against my mouse'. Do you mean you want the player to walk towards the mouse cursor once you press the UP ARROW key? Stevie |
| ||
Him Sledge, you must have posted just before me. :P |
| ||
LOL - I think we all posted at the same time!! |
| ||
Look... I have a player or something lets say a picture. When i PRESS UP KEY the picture or player or whatever will be moving towards my mouse pointer on the screan. Anyone know how to do this? |
| ||
Is this what your looking for? It wouldn't work with an image though because you would need to roate the image or use frames, unless you wanted to emulate 2d images with sprites, in which case its just pointentity(). I pulled AngleDif#() out of the code archives a while ago, not sure who posted it though sry. (oh yeah, if some1 could tell me what uitgraad and naar mean so i can put the rest of it into english that would be nice) |
| ||
Thank you very much! |