jpam Posted July 25, 2008 Author Share Posted July 25, 2008 allready fixed ! Link to comment Share on other sites More sharing options...
Tomb Posted July 26, 2008 Share Posted July 26, 2008 (edited) shouldnt this make a sprite out of the image, and display it on the gui? #Include <GuiConstants.au3> #Include "prospeed3.0.au3" $gui = GuiCreate("Sprite Test", 400, 400, -1, -1) GuiSetState(@SW_SHOW) $image = LoadSprite("image.jpg") $loadedimage = Sprite($image, 10, 10, 300, 300, 1, 1, 100, 10, 10) while 1 sleep(100) WEnd what am i doing wrong here? hmm. Edit: i used quote tags instead of code tags. Edited July 26, 2008 by Tomb616 Link to comment Share on other sites More sharing options...
jpam Posted July 26, 2008 Author Share Posted July 26, 2008 #Include <GuiConstants.au3> #Include "prospeed3.0.au3" $gui = GuiCreate("Sprite Test", 400, 400, -1, -1) GuiSetState(@SW_SHOW) $hdc = GetHDC() CreateBuffer(400,400) SetBuffer($hdc) $image = LoadSprite("image.jpg") $loadedimage = Sprite($image, $hdc, 10, 10, 300, 300, 1, 1, 100, 10, 10) while 1 sleep(100) WEnd Link to comment Share on other sites More sharing options...
Tomb Posted July 26, 2008 Share Posted July 26, 2008 thanks. i didnt notice that hdc thing before.although now it is giving me an error message. Link to comment Share on other sites More sharing options...
jpam Posted July 26, 2008 Author Share Posted July 26, 2008 make sure you have the last prospeed30.dll and prospeed30.au3 udf Link to comment Share on other sites More sharing options...
Tomb Posted July 26, 2008 Share Posted July 26, 2008 make sure you have the last prospeed30.dll and prospeed30.au3 udfthe result is this.maybe is not compatible with vista?=( Link to comment Share on other sites More sharing options...
Tomb Posted July 28, 2008 Share Posted July 28, 2008 this also happens on my xp computer at work. its alright though, i just downgraded to the old version before 3.0, and everything seems to work fine so im happy. =) thanks for your help. Link to comment Share on other sites More sharing options...
jpam Posted July 28, 2008 Author Share Posted July 28, 2008 (edited) it should work, even on vista ! can you make a zip file with the files your using inc prospeed.dll and udf ? so i can look at it ? you can send it to jpamvanderouderaa/orange.nl Edited July 28, 2008 by jpam Link to comment Share on other sites More sharing options...
Tomb Posted July 28, 2008 Share Posted July 28, 2008 it should work, even on vista !can you make a zip file with the files your using inc prospeed.dll and udf ?so i can look at it ? you can send it to jpamvanderouderaa@orange.nli think i found the problem.when that guy gsek uploaded the 3.0 file, it was named prospeed3.0.dll and when i downloaded the new one off your site i named it prospeed3.0.dll. it was just the "."it seems to be working now =) Link to comment Share on other sites More sharing options...
jpam Posted July 28, 2008 Author Share Posted July 28, 2008 glad you found the problem have fun Link to comment Share on other sites More sharing options...
Tomb Posted July 28, 2008 Share Posted July 28, 2008 glad you found the problem have fun thank you very much.i have been making this game for a while about my dog Toby, and i think prospeed will do just what i need for smooth graphics. guictrlsetimage was flashing so badly lol. and controlmove/guictrlsetpos were just to slow for what i wanted to do. they also caused extreme flashing. Link to comment Share on other sites More sharing options...
Uriziel01 Posted October 3, 2008 Share Posted October 3, 2008 Sory for mining the old thread, but may you help me in using ChangeSpritePara() func ? I want to change the bitmap of sprite, but even when Im writing old .png file path (used before ChangeSpritePara() ) my sprite is becoming a solid black rectangle If will be necessary I can upload my sprite files. (Small part of my code): $player = loadsprite( @ScriptDir & "\gfx\player\1.png") . . . . $s_player = Sprite($player, $hdc, 0, 0, 80, 69, 4, 1, 8, 130, 90) SetSpriteSpeed($s_player, 5, 5) . . . . ChangeSpritePara($s_player, "0", @ScriptDir & "\gfx\player\1.png") Movesprite($s_player, $x, $y) Link to comment Share on other sites More sharing options...
jpam Posted October 4, 2008 Author Share Posted October 4, 2008 try: ChangeSpritePara($s_player, 0, @ScriptDir & "\gfx\player\1.png") Link to comment Share on other sites More sharing options...
Uriziel01 Posted October 4, 2008 Share Posted October 4, 2008 Sorry. Nothing changed :\ Any other ideas ? Link to comment Share on other sites More sharing options...
jpam Posted October 4, 2008 Author Share Posted October 4, 2008 (edited) compleet working version expandcollapse popup#include <Prospeed30.au3> Opt("MouseCoordMode",0) Opt("GUIOnEventMode", 1) HotKeySet("{Esc}","_exit") $gui = GUICreate("Prospeed",800, 400, -1, -1) GUISetOnEvent(-3, "_exit") GUISetState() $hdc = GetHDC() CreateBuffer(800,400) SetBuffer($hdc) $sp1 = loadsprite(@scriptdir & "\Sprites.gif") $sp2 = loadsprite(@scriptdir & "\Sprites2.gif") $sp3 = loadsprite(@scriptdir & "\Sprites3.gif") $Bee = sprite($sp1, $hdc, 0, 0, 24, 18, 4, 1, 6, 50, 40) SetSpriteAnimMove($Bee, 1, 0, 0) SetSpriteAnimMove($Bee, 2, 0, 0) SetSpriteAnimMove($Bee, 3, 0, 0) SetSpriteAnimMove($Bee, 5, 0, 32) SetSpriteAnimMove($Bee, 6, 0, 32) SetSpriteAnimMove($Bee, 7, 0, 32) SetSpriteSpeed($Bee, 1, 1) SetSpriteMovingMode($Bee, 1) SetmovingRectangle($Bee,0, 0, 800-24, 250) While 1 moveSprite($Bee, Random(20,780,1), Random(20,250,1)) ChangeSpritePara($Bee, 0, $sp1) Sleep(1000) moveSprite($Bee, Random(20,780,1), Random(20,250,1)) ChangeSpritePara($Bee, 0, $sp2) Sleep(1000) moveSprite($Bee, Random(20,780,1), Random(20,250,1)) ChangeSpritePara($Bee, 0, $sp3) Sleep(1000) WEnd Func _exit() Exit EndFunc Edited October 4, 2008 by jpam Link to comment Share on other sites More sharing options...
Uriziel01 Posted October 5, 2008 Share Posted October 5, 2008 Ooooo! I get it, I have to use LoadSprite .... Checked, Now its fully working, thank your very much for your help! Link to comment Share on other sites More sharing options...
JustinMeyer Posted October 11, 2008 Share Posted October 11, 2008 A-Squared just picked this up.prospeed_demo.exe contains IM-Worm.win32.sohanad.bmClamWin also reported worm. fx-imagedemo.exe Link to comment Share on other sites More sharing options...
jpam Posted October 11, 2008 Author Share Posted October 11, 2008 That's why i don't use "ClamWin Free Antivirus" Link to comment Share on other sites More sharing options...
flxfxp Posted December 3, 2008 Share Posted December 3, 2008 simple player fmod_test.au3 udf FMod.au3 have fun I want to create a simple gui with 2 buttons, with xm music playing in the background. I looked at your files and could make the xm play at the start of the program. However, it is littered with stuff i dont need (start, stop, load, sliders, etc). I'm very new with autoit, could you give me a clear example on how to load this without the rest of the mess? Thank you in advance, FLX Link to comment Share on other sites More sharing options...
BrettF Posted December 3, 2008 Share Posted December 3, 2008 Sounds to me like you don't want to learn. but want it written for you. In that case go to RentaCoder.com. Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now