Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Sprite show in Event Dialog


DarkDino
 Share

Recommended Posts

Hello Eclipse, im try to show a Image or Sprite in EVENT DIALOG. I develop a scrl bar in Show Message ( Event Editor ), this work and save the VALUE in the server. Well my problem is in the RENDER SPRITE

![](http://i1070.photobucket.com/albums/u492/darkdino2d/xdddd_zps47429c28.png)

I write this in DrawEventChat, but i don't have idea how to call the SPRITE VALUE, to show my sprite :/! Please help me!

RenderTexture Tex_Character(**Map.CurrentEvents**), x - 5, y + 5, 64, 0, 64, 64, 64, 64

Im use Eclipse EFF.
Link to comment
Share on other sites

I don't know the event system, but I have no idea what the real problem is. Is the value not being sent from the server, does the value not save, or are you having problems with DX? Try to add as much relevant information as possible.
Link to comment
Share on other sites

I don't know how to CALL the value of SPRITE Event. This is my problem  :( " RenderTexture Tex_Character(** NEED HERE A VARIABLE CALL SPRITE VALUE OF EVENT **), x - 5, y + 5, 64, 0, 64, 64, 64, 64 "

I send the info with buffer.WriteLong .Sprite in :

Public Sub SendMap

Private Sub HandleSpawnEventPage

Private Sub HandleMapEventData
Link to comment
Share on other sites

Assuming the values **_are_** saving with the event, all you need to do is reference the value in the structure. For example, to retrieve the value of the player's sprite you would have to write

```

Player(index).Sprite
```
Just find out what Type the value is in, start from the global accessor (something like Public Event(1 to MAX_EVENTS) as EventRec)
Link to comment
Share on other sites

Public Type EventRec
    Name As String
    Global As Long
    pageCount As Long
    Pages() As EventPageRec
    x As Long
    y As Long
End Type

and

Private Type MapEventRec
    Name As String
    Dir As Long
    x As Long
    y As Long
    GraphicType As Long
    GraphicX As Long
    GraphicY As Long
    GraphicX2 As Long
    GraphicY2 As Long
    GraphicNum As Long
    Moving As Long
    MovementSpeed As Long
    Position As Long
    xOffset As Long
    yOffset As Long
    Step As Long
    Visible As Long
    WalkAnim As Long
    DirFix As Long
    ShowDir As Long
    Walkthrough As Long
    ShowName As Long
End Type

I need make the .Sprite value to Global in Event?
Link to comment
Share on other sites

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
 Share

×
×
  • Create New...