Jump to content

Recommended Posts

  • Replies 511
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted (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 by Tomb616
Posted

  jpam said:

make sure you have the last prospeed30.dll and prospeed30.au3 udf

the result is this.

maybe is not compatible with vista?

Posted Image

=(

Posted

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.

Posted (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 by jpam
Posted

  jpam said:

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

i 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 =)

Posted

  jpam said:

glad you found the problem

have fun :P

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.

  • 2 months later...
Posted

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 :P 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)
Posted (edited)

compleet working version :P

#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

post-5777-1223160937_thumb.gif

post-5777-1223160952_thumb.gif

post-5777-1223160963_thumb.gif

Edited by jpam
  • 1 month later...
Posted

  jpam said:

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...