Mirage Source

Free ORPG making software.
It is currently Fri Apr 19, 2024 12:41 pm

All times are UTC


Forum rules


Make sure your tutorials are kept up to date with the latest MS4 releases.



Post new topic Reply to topic  [ 1689 posts ]  Go to page 1, 2, 3, 4, 5 ... 68  Next
Author Message
PostPosted: Mon Sep 15, 2008 12:42 pm 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com
Here's the tutorial in PDF format.
http://www.valkoria.com/CharCreateSpriteTutorial_LeaRae_MSE3_50.pdf

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
PostPosted: Mon Sep 15, 2008 12:51 pm 
Offline
Regular
User avatar

Joined: Tue Jun 17, 2008 12:39 pm
Posts: 55
Awesome tutorial, I got it working on my MS4. Thanks.

Also, I'm trying to get it to animate itself and, trying to get it so when I press, the up arrow(or any other) it turns that way. Any idea how I could start doing that?


Top
 Profile  
 
PostPosted: Mon Sep 15, 2008 12:51 pm 
For those of you who don't have Adobe Reader on your computer and don't want it (I hate the damn thing. -_-) you can use this link:

http://view.samurajdata.se/psview.php?i ... &size=full

It still works as a pdf, but it's in html format. Still no copy paste. :D


Top
  
 
PostPosted: Mon Sep 15, 2008 12:58 pm 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com
To make it so an arrow key changed the direction the sprite was facing

Search for the arrow key to be pressed in Form_Keypresses
When that arrow key is pressed, change the src rectangle to grab the right frame
call picSprite_Paint() to redraw

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
PostPosted: Mon Sep 15, 2008 8:27 pm 
Offline
Knowledgeable
User avatar

Joined: Sun Nov 19, 2006 6:59 pm
Posts: 213
Love the way you did this :) Awesome idea to actually teach the tutorial instead of doing it straight copy & paste. Good job :)

_________________
Image


Top
 Profile  
 
PostPosted: Wed Oct 08, 2008 6:32 am 
Offline
Regular
User avatar

Joined: Sun Mar 02, 2008 2:21 am
Posts: 50
Great tut Lea, Are any more of these in the works? I can't go back to copy and paste becuase, well, becuase I never learn anything.

_________________
Image


Top
 Profile  
 
PostPosted: Wed Oct 08, 2008 9:41 pm 
Offline
Knowledgeable
User avatar

Joined: Thu Dec 28, 2006 8:57 pm
Posts: 297
Location: This magical place called 'reality'
Nice tut, and

FoxIt Reader is better than Adobe... IMHO

_________________
P2B Feed: Custom AI
Image


Top
 Profile  
 
PostPosted: Wed Oct 08, 2008 9:57 pm 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com
Hikaru wrote:
Great tut Lea, Are any more of these in the works? I can't go back to copy and paste becuase, well, becuase I never learn anything.

Put in a request for something, or IM me...

If it interests me, or it's something that's bitched about often (wrongly, as in this case)
I may feel motivated enouhg to do a tutorial


... instead of work on Merrimint :D

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
PostPosted: Sun Oct 26, 2008 2:18 am 
Offline
Regular
User avatar

Joined: Tue Sep 30, 2008 6:04 pm
Posts: 47
Can somebody post this in here instead of pdf -.-


Top
 Profile  
 
PostPosted: Sun Oct 26, 2008 2:45 am 
Offline
Knowledgeable
User avatar

Joined: Fri Sep 12, 2008 11:18 pm
Posts: 176
Location: England.
Night wrote:
Can somebody post this in here instead of pdf -.-


No.


Top
 Profile  
 
PostPosted: Sun Oct 26, 2008 6:38 am 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com
Mattyw wrote:
Night wrote:
Can somebody post this in here instead of pdf -.-


No.

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
PostPosted: Mon Dec 22, 2008 10:26 am 
Offline
Regular
User avatar

Joined: Sat Sep 13, 2008 8:25 pm
Posts: 69
Location: Slovenia
PDF doesn't exist anymore?

_________________
Image


Top
 Profile  
 
PostPosted: Mon Dec 22, 2008 6:14 pm 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com
my server's down for maintenance. Relax and I'll get it back up when I feel like it :D

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
PostPosted: Mon Dec 22, 2008 7:18 pm 
Offline
Regular
User avatar

Joined: Sat Sep 13, 2008 8:25 pm
Posts: 69
Location: Slovenia
Thanks for reply. Worry not and take your time, meanwhile, I'll try to do something on my own

_________________
Image


Top
 Profile  
 
PostPosted: Mon Dec 22, 2008 8:06 pm 
Pass me the PDF Lea, I'll host it for now.


Top
  
 
PostPosted: Fri Dec 26, 2008 6:43 pm 
Offline
Regular
User avatar

Joined: Sat Sep 13, 2008 8:25 pm
Posts: 69
Location: Slovenia
Indeed, that's great tutorial. Not that I just made "Display character" in creation screen BUT I've learned some things as well just because tutorial is not 100% copy paste. Thanks!

However, there is one thing I want to point out for others.
Code:
Call DD_SpriteSurf.BltToDC(picSprite.hdc, src, dest)

that is not working, at least not in MS4.

Instead of that you have to put in this:
Code:
Call DDS_Sprite.BltToDC(picSprite.hdc, src, dest)

_________________
Image


Top
 Profile  
 
PostPosted: Fri Dec 26, 2008 7:04 pm 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com
Thanks for the update, they must have changed that surface name in one of the revisions.

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
PostPosted: Fri Dec 26, 2008 11:18 pm 
Offline
Regular
User avatar

Joined: Sat Sep 13, 2008 8:25 pm
Posts: 69
Location: Slovenia
No worries...

I have another problem, or is it bug maybe? I'm not so sure.

Well, everything works perfectly, I login, create new char and logout to main menu.
I log-in to another account (without leaving game) and try to create new char.
When I click to create new char I get RTE "91": " Object variable or With block variable not set"
(that happens always when you try to create new char when you log-in at least two times in one runtime.

and VB points at:

Private Sub picSprite_Paint()
Call DDS_Sprite.BltToDC(picSprite.hdc, src, dest)
End Sub


I tried to unload picture box and few others but I can't figure anything...sorry if I'm silly but I simply can't figure anything out

_________________
Image


Top
 Profile  
 
PostPosted: Fri Dec 26, 2008 11:22 pm 
I don't think the buffer is being cleared or something. I'm not 100% sure.


Top
  
 
PostPosted: Sat Dec 27, 2008 4:48 am 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com
Mouse over the three arguements to the call, and let me know which one is goofing up. Is it the picture box? the hDC of the picturebox?

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
PostPosted: Sun Dec 28, 2008 9:59 pm 
Offline
Regular
User avatar

Joined: Sat Sep 13, 2008 8:25 pm
Posts: 69
Location: Slovenia
I mouse-overed three arguments and only on picSprite.Hdc showed "picSprite.Hdc = 33624106"

I'm not sure if that's what are you asking for, so let me know if that's not that

_________________
Image


Top
 Profile  
 
PostPosted: Sun Dec 28, 2008 10:13 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Mar 29, 2007 10:30 pm
Posts: 1510
Location: Virginia, USA
Google Talk: hpmccloud@gmail.com
DDS_Sprite isn't initialized.

_________________
Nean wrote:
Yes harold. Give it to me.

Image
Image


Top
 Profile  
 
PostPosted: Sun Dec 28, 2008 10:53 pm 
Offline
Regular
User avatar

Joined: Sat Sep 13, 2008 8:25 pm
Posts: 69
Location: Slovenia
Sorry but...where should I intialize that and how :oops:

_________________
Image


Top
 Profile  
 
PostPosted: Sun Dec 28, 2008 11:50 pm 
Offline
Community Leader
User avatar

Joined: Sun May 28, 2006 10:29 pm
Posts: 1762
Location: Salt Lake City, UT, USA
Google Talk: Darunada@gmail.com
What's probably happening is this:

When you log out to main menu, the directdraw surfaces are being killed
when you go back into the sprite create screen, it's trying to pull from a surface that was just killed.

Edit the log out code so it doesn't kill the DD surfaces, and make sure the surfaces are killed when the game exits instead

_________________
I'm on Facebook! Google Plus LinkedIn My Youtube Channel Send me an email Call me with Skype Check me out on Bitbucket Yup, I'm an EVE Online player!
Why not try my app, ColorEye, on your Android devlce?
Do you like social gaming? Fight it out in Battle Juice!

I am a professional software developer in Salt Lake City, UT.


Top
 Profile  
 
PostPosted: Mon Dec 29, 2008 12:41 am 
Offline
Persistant Poster
User avatar

Joined: Thu Mar 29, 2007 10:30 pm
Posts: 1510
Location: Virginia, USA
Google Talk: hpmccloud@gmail.com
Look in Sub DestroyTCP and remove the call to DestroyDirectDraw...

_________________
Nean wrote:
Yes harold. Give it to me.

Image
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1689 posts ]  Go to page 1, 2, 3, 4, 5 ... 68  Next

All times are UTC


Who is online

Users browsing this forum: wanai and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group